Updated on 2024-11-21 GMT+08:00

Managing Workflow Versions

Copying a Workflow Version

  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select a region or project.
  3. Click in the upper left corner of the page and choose Security & Compliance > SecMaster.
  4. In the navigation pane on the left, choose Workspaces > Management. In the workspace list, click the name of the target workspace.

    Figure 1 Workspace management page

  5. In the navigation pane on the left, choose Security Orchestration > Playbooks. Click Workflows.

    Figure 2 Workflows tab page

  6. In the Operation column of the target workflow, click More and select Version Management.

    Figure 3 Version Management page

  7. On the Version Management slide-out panel, in the version information area, locate the row containing the desired workflow version, and click Copy in the Operation column.
  8. In the dialog box displayed, click OK.

Editing a Workflow Version

You can only edit a workflow version whose version status is To be submitted or Rejected.

  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select a region or project.
  3. Click in the upper left corner of the page and choose Security & Compliance > SecMaster.
  4. In the navigation pane on the left, choose Workspaces > Management. In the workspace list, click the name of the target workspace.

    Figure 4 Workspace management page

  5. In the navigation pane on the left, choose Security Orchestration > Playbooks. Click Workflows.

    Figure 5 Workflows tab page

  6. In the Operation column of the target workflow, click More and select Version Management.

    Figure 6 Version Management page

  7. On the Version Management slide-out panel, in the version information area, locate the row containing the desired workflow version, and click Edit in the Operation column.
  8. On the workflow drawing page, drag basic, workflow, and plug-in nodes from Resource Libraries on the left to the canvas on the right for workflow design.

    Table 1 Resource Libraries parameters

    Parameter

    Description

    Basic

    Basic Node

    StartEvent

    The start of a workflow. Each workflow can have only one start node. The entire workflow starts from the start node.

    EndEvent

    The end of a workflow. Each workflow can have multiple end nodes, but the workflow must end with an end node.

    UserTask

    When the workflow execution reaches this node, the workflow is suspended and a to-do task is generated on the Task Center page.

    After you complete the task, the subsequent nodes in the workflow continue to be executed.

    Table 2 describes the UserTask parameters.

    SubProcess

    Another workflow is started to perform cyclic operations. It is equivalent to the loop body in the workflow.

    System Gateway

    ExclusiveGateway

    During line distribution, one of the multiple lines is selected for execution based on the condition expression.

    During line aggregation, if one of the multiple lines arrives, the subsequent nodes continue to execute the task.

    ParallelGateway

    During line distribution, all lines are executed.

    During line aggregation, the subsequent nodes are executed only when all the lines arrive. (If one line fails, the entire workflow fails.)

    InclusiveGateway

    During line distribution, all expressions that meet the conditions are selected for execution based on the condition expression.

    During line aggregation, subsequent nodes are executed only when all lines executed during traffic distribution reach the inclusive gateway. (If one line fails, the entire workflow fails.)

    Workflows

    You can select all released workflows in the current workspace.

    Plug-ins

    You can select all plug-ins in the current workspace.

    Table 2 UserTask parameters

    Parameter

    Description

    Primary key ID

    The system automatically generates a primary key ID, which can be changed as required.

    Workspace Name

    Name of the manual review node

    Expired

    Expiration time of a manual review node

    Description

    Description of the manual review node

    View Parameters

    Click . On the Select Context page that is displayed, select an existing parameter name. To add a parameter, click Add Parameter.

    Manual Handling Parameters

    Key of the input parameter To add a parameter, click Add Parameter.

    Processed By

    Set the reviewer of the workflow to the IAM user of the current IAM account. If a workflow needs to be approved after the setting, only the owner can handle it on the Task Center page. Non-owners can only view the workflow.

    NOTE:

    In first time use, you need to obtain authorization. Detailed operations are as follows:

    1. Click Authorize.
    2. On the Access Authorization slide-out panel displayed, select Agree and click OK.

  9. After the design is complete, click Save and Submit in the upper right corner. In the automatic workflow verification dialog box displayed, click OK.

    If the workflow verification fails, check the workflow based on the failure message.

Submitting a Workflow Version

  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select a region or project.
  3. Click in the upper left corner of the page and choose Security & Compliance > SecMaster.
  4. In the navigation pane on the left, choose Workspaces > Management. In the workspace list, click the name of the target workspace.

    Figure 7 Workspace management page

  5. In the navigation pane on the left, choose Security Orchestration > Playbooks. Click Workflows.

    Figure 8 Workflows tab page

  6. In the Operation column of the target workflow, click More and select Version Management.

    Figure 9 Version Management page

  7. On the Version Management slide-out panel, in the version information area, locate the row containing the desired workflow version, and click Submit in the Operation column.

    Figure 10 Submitting a workflow version

  8. In the confirmation dialog box, click OK to submit the workflow version.

    • After the workflow version is submitted, the Version Status changes to Pending Review.
    • After a workflow version is submitted, it cannot be edited. If you need to edit it, you can create a version or reject it during review.

Activating/Deactivating a Workflow Version

  • Only workflow versions in the Inactive state can be activated.
  • Each workflow can have only one activated version.
  • After the current version is activated, the previously activated version is deactivated. For example, if the V2 version is activated this time, the V1 version in the activated state is deactivated and changes to the deactivated state.
  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select a region or project.
  3. Click in the upper left corner of the page and choose Security & Compliance > SecMaster.
  4. In the navigation pane on the left, choose Workspaces > Management. In the workspace list, click the name of the target workspace.

    Figure 11 Workspace management page

  5. In the navigation pane on the left, choose Security Orchestration > Playbooks. Click Workflows.

    Figure 12 Workflows tab page

  6. In the Operation column of the target workflow, click More and select Version Management.

    Figure 13 Version Management page

  7. On the Version Management slide-out panel, in the version information area, locate the row containing the desired workflow version, and click Activate or Deactivate in the Operation column.

    Figure 14 Example deactivating a workflow version

  8. In the dialog box that is displayed, click OK.

Deleting a Workflow Version

  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select a region or project.
  3. Click in the upper left corner of the page and choose Security & Compliance > SecMaster.
  4. In the navigation pane on the left, choose Workspaces > Management. In the workspace list, click the name of the target workspace.

    Figure 15 Workspace management page

  5. In the navigation pane on the left, choose Security Orchestration > Playbooks. Click Workflows.

    Figure 16 Workflows tab page

  6. In the Operation column of the target workflow, click More and select Version Management.

    Figure 17 Version Management page

  7. On the Version Management slide-out panel, in the version information area, locate the row of the target workflow version, and click Delete in the Operation column.
  8. In the displayed dialog box, click OK.

    Deleted workflow versions cannot be retrieved. Exercise caution when performing this operation.