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 you 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 field.
- 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.
Using Workflow as a Request Category in Request Modeler:
Canvas enables you to use your own customized workflow as a Request Category in Request Modeler. To make use of your own customized workflow as a Request Category in Request Modeler, perform the following steps:
- On the home page of Canvas Studio, click Create>Request. For more information on creating a request, refer Creating Library Request.
- Select the newly created workflow that appears automatically in the Request Category drop-down list, e.g. NEW WORKFLOW.
- To configure Request Modeler, refer the pages of Configuring Request Modeler and Creating Library Request. Click Save to save the request.
Once the request gets saved, the Workspace Menu Selection page appears.
- Click the Workspace Id field and select a workspace of your choice from the list of existing workspaces.
- Once the proceedings get completed, click Save.
A confirmation message, indicating a successful save appears.
- Log on to the functional application (e.g. Modelhouse) using your credentials.
- On the home page of the application, select the workspace, in which the workspace menu was created, e.g. New Workspace.
- Click the New Request menu.
The Create Request window appears.
- Enter the relevant values in the relevant fields and click Submit.
Since the workflow did not consist of pre-confirmation and authorization activities, the entered data gets submitted directly without involving the process of authorization and validation. A confirmation message, indicating a successful completion of the request appears.
- Click Ok.
Editing a Workflow:
To edit a workflow, perform the following steps in Canvas Studio:
- On the home page of Canvas Studio, click Request Category.
The Request Category page appears.
- Right-click the workflow of NEW_WORKFLOW and click the Edit Request Category option.
- Edit the workflow based on your needs and requirements.
- Click icon to save the edited workflow.
A message box appears, stating that the pending transactions, associated with the requests, involving the current workflow will be moved to the Reject status, so as to ensure that the mechanism on processing requests is carried out in a viable and significant manner. The Status Code is an editable field and you can make relevant changes to it, in accordance with your needs and requirements.
- To submit the edited workflow, click Submit.
A confirmation message, indicating a successful save, appears.
- Click Ok.
Deleting a Workflow:
To delete a workflow, perform the following steps in Canvas Studio:
- On the home page of Canvas Studio, click Request Category.
The Request Category page appears.
- Right-click the workflow of STATE_FLOW3644 and click the Delete Request Category option.
A message box, prompting for the deletion of the workflow appears.
- Click Yes.
...
- Click Ok.