...
Context Target Using ContextTarget to store data in the flow which will be carried by the REST provider.
...
2. Create REST Provider End-point
In this particular use case, the process flow is shared by developing a REST provider that will eventually be integrated with the user interface.
Follow the steps below to create a REST Provider:
Click Configure > WEB SERVICES > REST Provider.
Click Create REST Provider.
In the Create REST Provider window, type the name and description of the new Web Service Provider service in the Name and Description fields respectively.
Type API Version, for example, your API version can be 1
...
Type the resource end path URL in the Resource End Path field. The URL can be static or dynamic. Static URL example: /get/File
Select the process flow name to trigger with the web service from the Process Flow Name field. example: Pf_Attachment
Set parameterName attribute of the context source should be restRequest
fileQueueId-This process will generate a unique File ID for each file.
fileType - Type of file downloading such as Input, Output, and Report files.
...
Tip |
---|
The above variables need to be bound in the user interface to process requests from the user. |
Click Add Method and select GET as the method type.
Select the Response Schema (For example, we are opting for the schema that has been utilized in the process flow as the target schema)
Save it.
3. Publish the Provider (REST URL) at UI
Once the above steps have been completed, it is necessary to link the REST provider URL with the user interface (UI) to present the data on the UI