<< Example of wrapping workflow  Datatypes >> 

Approval workflow

One of the most powerful features of Exponential 3 is that you can create custom workflows. Workflow is a mechanism implemented to give you the possibility to customize or add new features to operations in Exponential. Exponential 3 already has the workflow events needed to create a publishing approval workflow.

The workflow we will create will allow you to set up approval of object publishing in some places of your site, for certain user groups. It consists of an "Approve" event. The "Approve" event creates a collaboration item when it runs, the collaboration item will link the author and the approver together were they may discuss the content object and the approver will then decide what to do with it.

To set up an approval workflow you need to do next tree steps:

  • Create the workflow
  • Setup workflow parameters
  • Connect the workflow to the operation

Create the workflow

To create the new workflow you need to get into one of the workflow groups and click "New" there. It will create a new workflow and redirect you to an edit page. There you should fill in the "name" text entry with the name of your workflow, something like "Approval by editor", it is up to you. After that select Event/Approve from the drop down and click "New". Now you have created the necessary workflow.

Approval workflow

Setup workflow parameters

To customize the approval workflow you need to choose the values for editor, sections, and user groups. Editor is the person to whom the system sends approval tasks. Sections are the sections in which the approval workflow takes effect (tasks will be created only if the object is published in one of the selected sections). Users without approval are the user groups whose users do not require approval when publishing objects. After setting up these parameters click the "Store" button.

Connect the workflow to the operation

Go to the "Triggers" list and select the newly created workflow from the dropdown list on the content - publish - before line.

Triggers

Click the "Store" button. Now the workflow is connected to the operation.


Exponential