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
CreationWorkflowDefinitionholds the steps of a creation workflow.CreationWorkflowStepDefinitionis one step, with its label, assignees and watchers.ReviewStepDefinitionis a step that sends line items to user groups for review.ReviewByUserGroupsholds the review sub-steps of a review step.ReviewUserGroupSubStepsends line items to one user group for review.ReviewUserGroupsSequentialSubStepsruns review sub-steps one by one.ReviewUserGroupsParallelSubStepruns review sub-steps at the same time.IsSequentialSubStepmarks a sub-step that can run in a sequence.IsParallelSubStepmarks a sub-step that can run in parallel.
- See Also:
-
ClassDescriptionDefines a document Creation Workflow: the ordered list of steps in which users cooperate on creating a Quote, Agreement/Promotion, Rebate Agreement, or Compensation Plan before it is submitted for approval.Defines one step of a document Creation Workflow: its label, the users and user groups assigned to work on the document in this step, the watchers, and whether email notifications are sent.Marker interface for review sub-steps that can run as one branch of a parallel group in a
ReviewStepDefinitionof a Creation Workflow.Marker interface for review sub-steps that can be placed in a sequence in aReviewStepDefinitionof a Creation Workflow.Defines which user groups review the line items in a review step of a Creation Workflow, and in which order.A step in the Creation Workflow where line items are sent for review.A parallel group of review sub-steps in aReviewStepDefinitionof a Creation Workflow.A sequence of review sub-steps in aReviewStepDefinitionof a Creation Workflow.A sub step in the Creation Workflow where line items are sent for review by a particular user group.