Class Create_WorkflowStep

java.lang.Object
cdm.event.workflow.functions.Create_WorkflowStep
All Implemented Interfaces:
com.rosetta.model.lib.functions.RosettaFunction
Direct Known Subclasses:
Create_WorkflowStep.Create_WorkflowStepDefault

public abstract class Create_WorkflowStep extends Object implements com.rosetta.model.lib.functions.RosettaFunction
  • Field Details

    • conditionValidator

      @Inject protected com.rosetta.model.lib.functions.ConditionValidator conditionValidator
    • objectValidator

      @Inject protected com.rosetta.model.lib.functions.ModelObjectValidator objectValidator
  • Constructor Details

    • Create_WorkflowStep

      public Create_WorkflowStep()
  • Method Details

    • evaluate

      public WorkflowStep evaluate(MessageInformation messageInformation, List<? extends EventTimestamp> timestamp, List<? extends Identifier> eventIdentifier, List<? extends Party> party, List<? extends Account> account, WorkflowStep previousWorkflowStep, ActionEnum action, BusinessEvent businessEvent)
      Parameters:
      messageInformation - Contains all information pertaining the messaging header.
      timestamp - The dateTime and qualifier associated with this event.
      eventIdentifier - The identifiers that uniquely identify this lifecycle event.
      party - The specification of the parties involved in the WorkflowStep.
      account - Optional account information that could be associated to the event.
      previousWorkflowStep - Optional previous WorkflowStep that provides lineage to WorkflowStep that precedes it. If specified, the previous action is used to constrain the actions allows to the resulting workflow step.
      action - Specifies whether the event is a new, a correction or a cancellation. When a previous workflow step is specified, the allowed actions are as follows; New -> New, New -> Correct, New -> Cancel, Correct -> Correct and Correct -> Cancel. When a previous workflow is not specified, the action must be New. Two consecutive workflow steps with action New, is valid when you have multiple steps e.g. new execution -> new contract formation
      businessEvent - Life cycle event for the step. The business event must be specified if the action is new or corrected, and must be absent in the case of a cancel where the previous step would provide the lineage to the business event.
      Returns:
      workflowStep Workflow step with a business event (in the event of action being new or correct) and associated details about the message, identifiers, event timestamps, parties and accounts involved in the step.
    • doEvaluate

      protected abstract WorkflowStep.WorkflowStepBuilder doEvaluate(MessageInformation messageInformation, List<? extends EventTimestamp> timestamp, List<? extends Identifier> eventIdentifier, List<? extends Party> party, List<? extends Account> account, WorkflowStep previousWorkflowStep, ActionEnum action, BusinessEvent businessEvent)