null


Skip to end of banner
Go to start of banner

Edit, add and delete a state in workflow builder

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Overview

In the space settings document management dashboard, each workflow state in a custom workflow can be edited using the state editor in the workflow builder visual editor.

cdmc_wf_builder_stateeditor_review_baw_wf_copy.png

You can use the state editor in the visual editor workflow panel to:

  • change the state name

  • add or edit the state description

  • set an expiry date for the state

  • set the state as the final state in the workflow

You can also add and edit transitions and approvals for the state using the state editor.

A bundled workflow template must be copied to create an editable custom workflow. The workflow copy is created and saved with a unique new name. An original bundled workflow cannot be overwritten.

Accessing the state editor panel

In the space document management dashboard open the visual editor for a custom workflow.

cdmc_documentmanagementdashboard_extract_copy_baw_wf_actions_pencil icon_highlighed_visualeditor.png

The bundled workflows cannot be overwritten in the space document management dashboard. A duplicate can be created using the Actions menu option and the copy customized in the space.

In visual builder

cdmc_visualeditor_workflowpanel_copy_baw_wf.png

This displays the state editor for the state in the left-hand workflow panel.

cdmc_visualeditor_rejected_state_stateeditor_copy_baw_wf.png

The state editor displays

  • the state name

  • the number of Transitions and the number of Approvals for the state

Choose

  • Transitions to add new transitions or edit the existing transitions from the state. 

  • Approvals to add new approvals or edit the existing approvals for the state.

Any state workflow parameters are also displayed as a lozenge. In our workflow, the Approved state is configured as the final state in the workflow and includes a final lozenge.

cdmc_visualeditor_approvedstateeditor_copy_baw_wf.png

Editing a state

Mouse over the state name to display a pencil icon

  • click on the pencil icon to edit the state

cdmc_visualeditor_rejectedstateeditor_pencilicon_copy_baw_wf.png

You can also choose the State button in the navigator panel to edit the current state displayed in the left-hand workflow panel.

Use the text boxes to edit the state details.

cdmc_wfvisualeditor_stateeditor_rejectedstate_copy_baw_wf.png
  • state Name

  • state lozenge Colour using the color picker or by adding an appropriate hexadecimal color code

  • set a Due Date (expiry date) period or specific date using the dropdown options

  • set the state attribute to define it as the final state in the workflow

There should only be one final state in a workflow.

Save any changes to the state by choosing Apply.

When the workflow is applied to a page or blog post

  • the due date period is only set when a workflow transition occurs into the state on which the expiry has been added

If the state name is changed this may require an initialization of any existing applications of the workflow to transition to the new state, either manually on each individual page using the workflow popup or by a space administrator in the space Document Management dashboard.

Initializing the workflow removes any states that have become 'confused'.

Adding a state

To add a new state to the workflow choose +Add State in the workflow panel (or +State button in the navigator panel).

cdmc_wfvisualeditor_addstate_highlight_copy_baw_wf.png

Use the Add a state dialog box to

  • add a new named state

  • configure the new state attributes

cdmc_wfvisualeditor_add_a_state_stateeditor_copy_baw_wf.png

A new unique state name must be added to activate the Add button in the Add a state dialog box

After adding the new state name, you can edit attributes for the state.

cdmc_wfvisualeditor_add_a_state_nameadded_attributesoptions_stateeditor_copy_baw_wf.png
  • state Description

  • state indicator circle and state lozenge Colour

  • set the state as the final state in the workflow

A workflow can only have ONE final state.

Choose Add to add the state to the workflow in the visual editor.

cdmc_wfvisualeditor_new_state_added_copy_baw_wf.png

Choose Save to save the added state to the workflow in the visual editor.

Edits are not saved to the workflow until you choose Save in the visual editor. Exiting the workflow builder visual editor without saving causes your changes to be lost.

You must save a custom workflow with a unique name. An error message is displayed.

Choose the back arrow to the left of the new state name to return to the workflow panel.

cdmc_wfvisualeditor_newaddedstate_panel_backhighlight_copy_baw_wf.png

Select the current workflow name to open the Edit Workflow panel.

cdmc_wf_builder_baw_copy_withannualreviewstate_workflowpanel.png

If required, edit the workflow name to create a new unique name.

  • choose Apply

Due date

The Due Date for the expiry of the content in the state can be set. This can be a period or a fixed date.

  • the Period can be set as Year(s), Month(s), Day(s), Hour(s), Minute(s) or Second(s) using the dropdown options

  • if a more complex due date period of time is required then the ISO_8601 format can be used for the duration string e.g. P6M5D is 6 months 5 days

  • Fixed Date will access a calendar to choose the day of expiry

  • a Value Reference can also be used to set the due date value. This can be a workflow parameter value

If a period is set, this is calculated from the date and time of transition into the state. It is reset each time a transition occurs to the new state.

Saving changes to the workflow

After adding a new state using the state editor, the new workflow state is

  • displayed in the visual workflow diagram in the visual editor

  • added as the last listed state workflow panel

  • added to the workflow code in the code editor

cdmc_wf_builder_baw_copy_withannualreviewstate_workflowvisualeditor.png

The state is added with a default transition allowing a user to select any one of the other states in the workflow.

When a new state is added, the new state has no transitions displayed in the workflow builder transitions editor for the state. Use the state editor in workflow builder to add transitions.

Save the workflow in workflow builder and Exit to the space settings Document Control dashboard the workflow name to add the updates to the workflow in the dashboard.

On viewing the page with the applied workflow, the new state is displayed in the progress tracker in the workflow popup.

In this example, the new state Annual Review has only the default transition to any other state in the workflow and no transitions to the new state.

Moving a state in the workflow

The order of the states can be changed in the workflow panel by dragging and dropping the state in the workflow panel

Changes in the order are reflected

  • in a change in the visual workflow diagram displayed in the right-hand navigator panel

  • in the code editor

Moving a state in the visual editor workflow panel does not change any transitions to or from the state.

Deleting a state

For the state to be removed

  • open the state editor

  • choose Delete

An on-screen warning message is displayed.

  • choose Delete to confirm the state deletion

The state deletion removes

  • all approvals in the state and transitions from the deleted state

  • and transitions from other states to the deleted state

Removing the Review state from the copy of the Basic Approval Workflow leaves the workflow with

  • two states - Rejected and Approved

  • one transition - the approved transition from Rejected to Approved

Related pages


  • No labels