Interface ActivityInstanceEntityManager

    • Method Detail

      • findActivityInstancesByProcessInstanceId

        List<ActivityInstanceEntity> findActivityInstancesByProcessInstanceId​(String processInstanceId,
                                                                              boolean includeDeleted)
      • findActivityInstanceCountByQueryCriteria

        long findActivityInstanceCountByQueryCriteria​(ActivityInstanceQueryImpl activityInstanceQuery)
      • findActivityInstanceCountByNativeQuery

        long findActivityInstanceCountByNativeQuery​(Map<String,​Object> parameterMap)
      • deleteActivityInstancesByProcessInstanceId

        void deleteActivityInstancesByProcessInstanceId​(String processInstanceId)
      • recordActivityEnd

        void recordActivityEnd​(ExecutionEntity executionEntity,
                               String deleteReason)
        Record Activity end, if activity event logging is enabled.
        Parameters:
        executionEntity - execution entity during which execution activity was ended
        deleteReason - the reason why activity was ended
      • recordActivityStart

        void recordActivityStart​(ExecutionEntity executionEntity)
        Record the start of an activity, if activity event logging is enabled.
        Parameters:
        executionEntity - execution which is starting activity
      • recordSubProcessInstanceStart

        void recordSubProcessInstanceStart​(ExecutionEntity parentExecution,
                                           ExecutionEntity subProcessInstance)
        Record the sub process instance start
      • recordTaskCreated

        void recordTaskCreated​(TaskEntity task,
                               ExecutionEntity execution)
        Record task created
        Parameters:
        task - the task which was created
        execution - execution which created the task
      • recordTaskInfoChange

        void recordTaskInfoChange​(TaskEntity taskEntity,
                                  Date changeTime)
        Record task information change
        Parameters:
        taskEntity - task entity which was changed
        changeTime - the time of the change
      • syncUserTaskExecution

        void syncUserTaskExecution​(ExecutionEntity executionEntity,
                                   org.flowable.bpmn.model.FlowElement newFlowElement,
                                   String oldActivityId,
                                   TaskEntity task)
        Synchronize data with the new user task execution
        Parameters:
        executionEntity - execution which executes user task
        newFlowElement - user task flow element
        oldActivityId - previous activity id
        task - the user task
      • updateActivityInstancesProcessDefinitionId

        void updateActivityInstancesProcessDefinitionId​(String newProcessDefinitionId,
                                                        String processInstanceId)
        Update process definition reference in all activity instances for a given process instance
        Parameters:
        newProcessDefinitionId - new process definition id
        processInstanceId - process instance which activities are transformed
      • recordSequenceFlowTaken

        void recordSequenceFlowTaken​(ExecutionEntity execution)
        record that sequence flow was taken
        Parameters:
        execution - execution which executed sequence flow