Creating a Workflow
To create a workflow in Canvas Studio, perform the following steps:
- On the home page of Canvas Studio, click Create > Workflow.
The Create Workflow page appears.
On the left side of the page, you can find the options of Start, State, Action, Activity, Rule and End. The automatic presence of the Start symbol enables the user to initiate the creation of a workflow. Start denotes the beginning of the workflow, while End indicates the conclusion of the workflow. State represents the state of the workflow, while Action and Activity trigger their respective functions, thereby facilitating the formation of a workflow. Rule allows the users to assign rules for the workflow in accordance with their requirements and needs. - Right-click the Start symbol and click State.
On the right side of the page, State ID, Description and Is Default options appear, categorized under the section of Property. - In the Property section, perform the following steps:
- Give a unique ID in the State ID
- Type the description in the Description
- If the assigned state is the default state in the workflow, select the Is Default
- Click Save to save the state details.
- Right-click the INIT state and then select Action.
The options of Action ID, Description, Transaction Required and Edit Mode appear on the right side of the page and these options are categorized under the section of Property.- Give a unique name to Action ID and type the words of your choice in the Description field.
- Click the checkboxes of Transaction Required and Edit Mode.
- Click Save to save the action details.
- Right-click the Submit action and then select Activity.
On the right side of the page, the Activity Type appears, categorized under the section of Property. - Select a relevant activity from the Activity Type drop-down list. For more information on activity types, refer Activities.
- To save the newly selected activity, click Save Activity.
You can add numerous activities to your workflow based on your needs and requirements. You can even use your own set of relevant activities to fulfil the requirements of creating your own workflow. For more information on creating activities, refer Creating Activities.
The following sample screen shot showcases the selection of movetoState Activity. - To assign rules for your workflow, right-click the moveToState activity and click Rule. For detailed information on using rules in a workflow, refer Using Evaluators (Rules) in a Workflow.Â
- To conclude the workflow, right-click the moveToState activity and click End.
The newly created workflow appears as shown in the following screen shot: - Click icon to configure the settings of the workflow.
- Type the words of your choice in the Description.
- In the Bundle field, type the name of the bundle key associated with the property file.
- Click Start State drop-down list to select the initial state of INIT.
- Click PreInit Action to select the pre-initialized action of Submit. It is not mandatory for the users to select the PreInit Action.
- Once the proceedings are completed, click Save.
- Click the ID text field to modify the workflow ID.
- Once the workflow gets saved, then it is not possible to modify the workflow ID. Only when you create a workflow, it’s possible for you to edit the workflow ID. Later when you edit an existing workflow, the ID field becomes a non-editable one.
- You can even modify the Name of the workflow. Unlike the ID text field, the Name of the workflow is an editable field and you can modify it at all times.
- Click icon to save the workflow.
A confirmation message, indicating a successful save appears. - Click Ok.