Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents

Overview

...

minLevel1
maxLevel6
outlinefalse
typeflat
separatorpipe
printabletrue

Overview

The state editor in the workflow builder visual editor is used to add or edit a state for a custom workflow.

...

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 choose to 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 will remain unchanged and cannot be overwritten.

Accessing the state editor panel

Choose In the app space settings

  • open the visual editor for a custom workflow

...

Info

The bundled workflows cannot be overwritten in the app space settings. A duplicate can be created using the Actions menu option, and the copy can be customized in the space.

In visual builder

...

...

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

...

The state editor displays

  • the state name

...

  • the number of Transitions

...

  •  and the number of Approvals for the state

...

Choose

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

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

It will also display any Any state parameters for the chosen state - final for a final state in the workflow.workflow parameters are also displayed as a lozenge. In our workflow, the Approved state is configured as the final state and includes a final lozenge.

...

Editing a state

Mouse over the state name to display a pencil icon

  • click on the pencil icon to edit the state

...

...

Tip

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.

...

  • 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 Due Date using the dropdown options

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

Info

There should only be one final state in a workflow.

...

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 app space Document Management dashboardsettings.

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

Adding a state

To add a new state to the a workflow

  • choose +Add State in the workflow panel (or +State button in the navigator panel)

...

...

The Use the Add a state dialog box allows you to

  • add a new named state

...

  • configure the new state attributes

...

...

A new unique state name

...

must be added to activate the Add button in the Add a state dialog box

Once a name is enteredAfter adding the new state name, you can also add the edit attributes for the state.

...

  • 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 in the Add a state dialog box to add the state to the workflow in the visual editor.

...

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

Note

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

If the workflow you are editing is one of the bundled workflows with the app you will not be able to overwrite this workflowYou must save a custom workflow with a unique name. An error message is displayed.

...

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

...

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

...

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 time period or a fixed date.

    • the time Period can be set as Year(s), Month(s), Day(s), Hour(s), Minute(s) or Second(s)if a more complex due date period of time is required then using the dropdown options

    • the ISO_8601 format can be used for the duration stringe.g. , for example, P6M5D is 6 months 5 days

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

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

    If a time 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

    • 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

    ...

    The state is added with a default state transition allowing a user to select one of any other state new state has the default transition that lets you select any of the other states in the workflow. In this example, the new state Annual Review also has no transitions from any other state.

    When a new state is added,

    ...

    no transitions are displayed in the workflow builder transitions editor for

    ...

    that state.

    ...

    ...

    .

    When you Save the workflow in workflow builder and you Exit to the space settings Document Control dashboard the workflow name is appended with (Copy).if you have not added a name after making changes to a workflow bundled with the app.

    ...

    When viewing the content the new state will be added to add the updates to the workflow in the app space settings.

    ...

    When a page with this applied workflow is viewed, the new state is displayed in the progress tracker in the workflow popup.

    ...

    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 workflow builderthe code editor

    Info

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

    Deleting a state

    Open For the state editor for the state to be removed and

    • open the state editor

    • choose Delete

    ...

    An on-screen warning message is displayed.

    ...

    • choose Delete to confirm the state deletion

    The deletion of a state will remove all approvals and transitions into and from this statestate deletion removes

    • all approvals in the state

    • all transitions from other states to the deleted state

    The workflow also transitions from the deleted state to one of the remaining states.

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

    • two states - Rejected and Approved

    • one transition - the approved transition from Rejected to Approved

    ...

    Child pages (Children Display)
    depth1
    allChildrenfalse
    style
    pageUsing Workflow Builder
    first6
    sortAndReverse