Interface SubprocessCall<P,C,CS extends Enum<CS> & ProcessStepKey>

Type Parameters:
P - parent payload type
C - child payload type
CS - child definition's step-key enum

public interface SubprocessCall<P,C,CS extends Enum<CS> & ProcessStepKey>
Typed invocation of a child process definition.
  • Method Summary

    Modifier and Type
    Method
    Description
    Child definition to start.
    default P
    merge(P parentPayload, C completedChildPayload)
    Merge the completed child payload back into the parent.
    payload(P parentPayload)
    Build the child payload from the current parent payload.
  • Method Details

    • definition

      ProcessDefinition<C,CS> definition()
      Child definition to start. Its key and version are persisted with the child instance.
    • payload

      C payload(P parentPayload)
      Build the child payload from the current parent payload.
    • merge

      default P merge(P parentPayload, C completedChildPayload)
      Merge the completed child payload back into the parent.

      The default keeps the parent unchanged, which is suitable when the child communicates through its own domain records.