Class ModificationBuilderImpl

    • Field Detail

      • processInstanceIds

        protected java.util.List<java.lang.String> processInstanceIds
      • processDefinitionId

        protected java.lang.String processDefinitionId
      • skipCustomListeners

        protected boolean skipCustomListeners
      • skipIoMappings

        protected boolean skipIoMappings
      • annotation

        protected java.lang.String annotation
    • Constructor Detail

      • ModificationBuilderImpl

        public ModificationBuilderImpl​(CommandExecutor commandExecutor,
                                       java.lang.String processDefinitionId)
    • Method Detail

      • startBeforeActivity

        public ModificationBuilder startBeforeActivity​(java.lang.String activityId)
        Description copied from interface: InstantiationBuilder

        Submits the instruction:

        Start before the specified activity.

        In particular:

        • In the parent activity hierarchy, determine the closest existing ancestor activity instance
        • Instantiate all parent activities up to the ancestor's activity
        • Instantiate and execute the given activity (respects the asyncBefore attribute of the activity)

        Specified by:
        startBeforeActivity in interface InstantiationBuilder<ModificationBuilder>
        Parameters:
        activityId - the activity to instantiate
      • startTransition

        public ModificationBuilder startTransition​(java.lang.String transitionId)
        Description copied from interface: InstantiationBuilder

        Submits the instruction:

        Start a sequence flow.

        In particular:

        • In the parent activity hierarchy, determine the closest existing ancestor activity instance
        • Instantiate all parent activities up to the ancestor's activity
        • Execute the given transition (does not consider sequence flow conditions)

        Specified by:
        startTransition in interface InstantiationBuilder<ModificationBuilder>
        Parameters:
        transitionId - the sequence flow to execute
      • cancelAllForActivity

        public ModificationBuilder cancelAllForActivity​(java.lang.String activityId)
        Description copied from interface: ModificationBuilder

        Submits the instruction:

        Cancel all instances of the given activity in an arbitrary order, which are:

        • activity instances of that activity
        • transition instances entering or leaving that activity

        The cancellation order of the instances is arbitrary

        Specified by:
        cancelAllForActivity in interface ModificationBuilder
        Parameters:
        activityId - the activity for which all instances should be cancelled
      • cancelAllForActivity

        public ModificationBuilder cancelAllForActivity​(java.lang.String activityId,
                                                        boolean cancelCurrentActiveActivityInstances)
        Description copied from interface: ModificationBuilder

        Submits the instruction:

        Cancel all instances of the given activity in an arbitrary order, which are:

        • activity instances of that activity
        • transition instances entering or leaving that activity

        The cancellation order of the instances is arbitrary

        Specified by:
        cancelAllForActivity in interface ModificationBuilder
        Parameters:
        activityId - the activity for which all instances should be cancelled
      • execute

        public void execute​(boolean writeUserOperationLog)
      • executeAsync

        public Batch executeAsync()
        Description copied from interface: ModificationBuilder
        Execute the modification asynchronously as batch. The returned batch can be used to track the progress of the modification.
        Specified by:
        executeAsync in interface ModificationBuilder
        Returns:
        the batch which executes the modification asynchronously.
      • getProcessInstanceIds

        public java.util.List<java.lang.String> getProcessInstanceIds()
      • getProcessDefinitionId

        public java.lang.String getProcessDefinitionId()
      • setProcessDefinitionId

        public void setProcessDefinitionId​(java.lang.String processDefinitionId)
      • isSkipCustomListeners

        public boolean isSkipCustomListeners()
      • isSkipIoMappings

        public boolean isSkipIoMappings()
      • getAnnotation

        public java.lang.String getAnnotation()
      • setAnnotationInternal

        public void setAnnotationInternal​(java.lang.String annotation)