DriveWorks Pro 18: CPQ Order Workflow [send feedback...]

CPQ Order Workflow

This Template is used to customize the work flow of an Order in CPQ.

It can be used to add new States and Tasks that are triggered when the Order is transitioned.

In this example tutorial, we will add a fourth State to the workflow and create a Task to run when the Order is moved into the new State.

Creating the new Order Workflow Project

  1. Create a new Project from the CPQ Order Workflow template.
  2. Open the Project in DriveWorks Administrator.
  3. To add a new State:

    Copy and Paste the 'Ship' Macro button on the Portal Form.

  4. Rename the newly pasted button to be 'Complete'.
  5. Edit the Left property for the newly created button. Change the rule so it goes to the right hand side of the Ship button (change 'Order' to 'Ship') as below:
    Ship.Left+Ship.Width+DWVariableFormPadding
        
  6. Edit the Text Property to be a Static Value of 'Complete'.
  7. Change the Macro Argument Property to be a Static Value of Completed .

    Completed is going to be the name that we will give to the Transition in the Specification Flow that we will create in the next section. The Macro that the Macro Button runs will run a Transition based on the Macro Argument supplied.

    Before creating the Transition, we need to make one last alteration on the Main Form.

  8. Select the Main form.
  9. Select the Workflow Frame Control and Edit it's Width Property. Change the rule to be:
    Complete.Left+Complete.Width

    This rule changes how wide the Frame control is, so that the new 'Complete' Macro Button is visible.

Modify the Specification Flow.

  1. Go to Specification Flow.
  2. Create a new Automatic State called AutoCompleted.

    See Specification Flow for more information on creating States.

  3. Create a Transition from the Running State to the new State named Completed (this is the Transition that will be run by the Macro Button previously created).
  4. Create a Transition from the newly created AutoComplete State to the StateChanged State. Name this Transition Completed.

The Specification Flow will be as the image below:

Adding a Task to run when the State is changed

  1. Edit the AutoCompleted State.
  2. Add any Macro Task required to run (for example, releasing an email, creating a document etc.).
    Add the task to the Leave Event of the State.
  3. This Task will now run when the Order is moved into the Completed State using the Macro Button.

Test this works by creating a Text Document and releasing it on this State Change.

Instruct the CPQ DriveApp to use the new Project

  1. Open CPQ Settings.
  2. Register the Project created in the above section using the 'Project to register' Combo Box under General Settings.
    Do NOT check the box for 'Is Project a Custom Item Project'
  3. Check the check box alongside 'Custom Workflow Project Required’ under Order Settings.
  4. Select the newly registered Project from the Combo Box that appears.
  5. Click Save at the top of the Settings Project to save the changes.

This Project will now be used when the Workflow tab is selected when editing Orders.

Historical Orders will now use this template.

Table of Contents