Versions Compared

Key

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

...

Info

We put a | (a pipe character – that vertical, sometimes split, line near the Enter key on your keyboard) between the taskable=true parameter and the submit=Review parameter.

On the page the workflow popup displays the single destination user choice as the destination state.

...

You can also add this using workflow builder to edit the transitions for the Editing state.

...

Code Block
{state:Editing|taskable=true}
  {state-selection:states=Review|haslabel=projecta}
{state}

If the specified label projecta, is not added to the page, the workflow popup does not display any transition option.

...

What are parameters?

Most Macros can have settings, called parameters.

...

Code Block
languagetext
{workflow:name=Simple Content Production Process}
   {state:Editing|taskable=true|submit=Review}
   {state}
   {state:Review|taskable=true|approved=Published|rejected=Editing}
      {approval:Review}
   {state}
   {state:Published|final=true|taskable=true}
   {state}
{workflow}

Workflow builder can be used to add an approval to the Review state.

...

Once the approval is added, the Approved and Rejected transitions can be added to the state using the workflow builder Transitions editor for the Review state.

...

Info

The Approved and Rejected transitions are only available after an approval has been added to the state.

Published transition

Once content is Published, we generally leave it in that state. However, what happens if someone edits it?

...

Code Block
languagetext
{workflow:name=Simple Content Production Process}
   {state:Editing|taskable=true|submit=Review}
   {state}
   {state:Review|taskable=true|approved=Published|rejected=Editing}
      {approval:Review}
   {state}
   {state:Published|final=true|taskable=true|updated=Editing}
   {state}
{workflow}

In workflow builder, add an Updated transition to the the Published state.

...

On the page with the added workflow, no transitions are displayed when the page is in the Published state.

...

Test it

Now, try testing the transitions in your workflow.

...

And when you transitioned to the Review state, did you get stuck?

It's time for the next lesson.

...