Package net.pricefx.common.dto.creationworkflow


package net.pricefx.common.dto.creationworkflow
Defining the creation workflow of a document.

A creation workflow is the list of steps a document passes through while it is created. Quotes, Agreements & Promotions, Rebate Agreements and Compensation Plans support it. Each step has a label, assignees and watchers. A review step sends line items to user groups for review.

Entry point: PublicGroovyAPI.newCreationWorkflow(), built from steps that api.newCreationWorkflowStep() and api.newReviewStep() create. The creation workflow logic returns the finished workflow.


 def draft = api.newCreationWorkflowStep()
         .withLabel("Draft")
         .withUserAssignees("john.price")
 def check = api.newCreationWorkflowStep()
         .withLabel("Price Check")
         .withUserAssignees("admin")
         .withUserWatchers("john.doe")
 return api.newCreationWorkflow()
         .withSteps(draft, check)
 

Review sub-steps nest. api.newReviewSubStep() sends line items to one user group. api.newReviewSequentialSubSteps() runs sub-steps one by one, and api.newReviewParallelSubSteps() runs them at the same time. Each kind of group can sit inside the other.

Reference

See Also: