Description:
This step is used to set the workflow states while executing the instance. For e.g. a buisness proposal life cycle has these stage; Pre-proposal, RFP/Opportunity, Pre-writing, Submission, Award, Progress Management and Follow Up. We can configure the workflow with appropriate life cycle stages using this process step. The current stage of business proposals (during run time) can be easily identified during process instance review.
Inputs
- State - State of the instance
Returns
- True – True condition
- False – False condition
Usage:
Example:
Let’s build and execute the “setWFStateDef” example.
- Create a new definition called “setWFStateDef”
- Select the definition and click the “design” button
- Drag a “setWFState” step from the toolbox
- Connect the dots between the start and “setWFState” step
- Click on the “setWFState” step to configure its properties
- Click on the "setWFState" step to configure its "Settings" properties. Provide a name to the step. Provide the state of instance description.
- The “Logging” setting configuration is necessary for documentation and also measure the workflow progress and the percent complete. This is acheived by configuring the step state and percent fields individually as shown in the images below. Configure the “Logging” using the following properties.
- Save the process definition, create a process instance and execute. The instance should get updated with the latest executed state step value.
- The following workflow the setWFState step is measuring the user's feedback submitted through a process workflow. The workflow state identifies the process flow during runtime.
- The workflow is shown iterating for user's feedback rating < 8.
- The workflow is shown complete for user's feedback rating >= 8.