@ -46,7 +46,7 @@ public interface ProcessInstanceMapper extends BaseMapper<ProcessInstance> {
/ * *
* query process instance by host and stateArray
*
* @param host host
* @param host host
* @param stateArray stateArray
* @return process instance list
* /
@ -57,7 +57,7 @@ public interface ProcessInstanceMapper extends BaseMapper<ProcessInstance> {
* query process instance by tenantId and stateArray
*
* @param tenantId tenantId
* @param states states array
* @param states states array
* @return process instance list
* /
List < ProcessInstance > queryByTenantIdAndStatus ( @Param ( "tenantId" ) int tenantId ,
@ -65,7 +65,7 @@ public interface ProcessInstanceMapper extends BaseMapper<ProcessInstance> {
/ * *
* @param workerGroupName workerGroupName
* @param states states array
* @param states states array
* @return process instance list
* /
List < ProcessInstance > queryByWorkerGroupNameAndStatus ( @Param ( "workerGroupName" ) String workerGroupName ,
@ -88,15 +88,15 @@ public interface ProcessInstanceMapper extends BaseMapper<ProcessInstance> {
/ * *
* process instance page
*
* @param page page
* @param projectCode projectCode
* @param page page
* @param projectCode projectCode
* @param processDefinitionCode processDefinitionCode
* @param searchVal searchVal
* @param executorId executorId
* @param statusArray statusArray
* @param host host
* @param startTime startTime
* @param endTime endTime
* @param searchVal searchVal
* @param executorId executorId
* @param statusArray statusArray
* @param host host
* @param startTime startTime
* @param endTime endTime
* @return process instance page
* /
IPage < ProcessInstance > queryProcessInstanceListPaging ( Page < ProcessInstance > page ,
@ -112,7 +112,7 @@ public interface ProcessInstanceMapper extends BaseMapper<ProcessInstance> {
/ * *
* set failover by host and state array
*
* @param host host
* @param host host
* @param stateArray stateArray
* @return set result
* /
@ -123,7 +123,7 @@ public interface ProcessInstanceMapper extends BaseMapper<ProcessInstance> {
* update process instance by state
*
* @param originState originState
* @param destState destState
* @param destState destState
* @return update result
* /
int updateProcessInstanceByState ( @Param ( "originState" ) ExecutionStatus originState ,
@ -133,7 +133,7 @@ public interface ProcessInstanceMapper extends BaseMapper<ProcessInstance> {
* update process instance by tenantId
*
* @param originTenantId originTenantId
* @param destTenantId destTenantId
* @param destTenantId destTenantId
* @return update result
* /
int updateProcessInstanceByTenantId ( @Param ( "originTenantId" ) int originTenantId ,
@ -143,30 +143,32 @@ public interface ProcessInstanceMapper extends BaseMapper<ProcessInstance> {
* update process instance by worker groupId
*
* @param originWorkerGroupName originWorkerGroupName
* @param destWorkerGroupName destWorkerGroupName
* @param destWorkerGroupName destWorkerGroupName
* @return update result
* /
int updateProcessInstanceByWorkerGroupName ( @Param ( "originWorkerGroupName" ) String originWorkerGroupName ,
@Param ( "destWorkerGroupName" ) String destWorkerGroupName ) ;
/ * *
* count process instance state by user
* Statistics process instance state by given project codes list
* < p >
* We only need project codes to determine whether the process instance belongs to the user or not .
*
* @param startTime startTime
* @param endTime endTime
* @param startTime startTime
* @param endTime endTime
* @param projectCodes projectCodes
* @return ExecuteStatusCount list
* /
List < ExecuteStatusCount > countInstanceStateByUser (
@Param ( "startTime" ) Date startTime ,
@Param ( "endTime" ) Date endTime ,
@Param ( "projectCodes" ) Long [ ] projectCodes ) ;
List < ExecuteStatusCount > countInstanceStateByProjectCodes (
@Param ( "startTime" ) Date startTime ,
@Param ( "endTime" ) Date endTime ,
@Param ( "projectCodes" ) Long [ ] projectCodes ) ;
/ * *
* query process instance by processDefinitionCode
*
* @param processDefinitionCode processDefinitionCode
* @param size size
* @param size size
* @return process instance list
* /
List < ProcessInstance > queryByProcessDefineCode ( @Param ( "processDefinitionCode" ) Long processDefinitionCode ,
@ -176,8 +178,8 @@ public interface ProcessInstanceMapper extends BaseMapper<ProcessInstance> {
* query last scheduler process instance
*
* @param definitionCode definitionCode
* @param startTime startTime
* @param endTime endTime
* @param startTime startTime
* @param endTime endTime
* @return process instance
* /
ProcessInstance queryLastSchedulerProcess ( @Param ( "processDefinitionCode" ) Long definitionCode ,
@ -188,9 +190,9 @@ public interface ProcessInstanceMapper extends BaseMapper<ProcessInstance> {
* query last running process instance
*
* @param definitionCode definitionCode
* @param startTime startTime
* @param endTime endTime
* @param stateArray stateArray
* @param startTime startTime
* @param endTime endTime
* @param stateArray stateArray
* @return process instance
* /
ProcessInstance queryLastRunningProcess ( @Param ( "processDefinitionCode" ) Long definitionCode ,
@ -202,8 +204,8 @@ public interface ProcessInstanceMapper extends BaseMapper<ProcessInstance> {
* query last manual process instance
*
* @param definitionCode definitionCode
* @param startTime startTime
* @param endTime endTime
* @param startTime startTime
* @param endTime endTime
* @return process instance
* /
ProcessInstance queryLastManualProcess ( @Param ( "processDefinitionCode" ) Long definitionCode ,
@ -231,7 +233,7 @@ public interface ProcessInstanceMapper extends BaseMapper<ProcessInstance> {
* query process instance by processDefinitionCode and stateArray
*
* @param processDefinitionCode processDefinitionCode
* @param states states array
* @param states states array
* @return process instance list
* /
@ -239,12 +241,12 @@ public interface ProcessInstanceMapper extends BaseMapper<ProcessInstance> {
@Param ( "states" ) int [ ] states ) ;
List < ProcessInstance > queryByProcessDefineCodeAndStatusAndNextId ( @Param ( "processDefinitionCode" ) Long processDefinitionCode ,
@Param ( "states" ) int [ ] states , @Param ( "id" ) int id ) ;
@Param ( "states" ) int [ ] states , @Param ( "id" ) int id ) ;
int updateGlobalParamsById ( @Param ( "globalParams" ) String globalParams ,
@Param ( "id" ) int id ) ;
boolean updateNextProcessIdById ( @Param ( "thisInstanceId" ) int thisInstanceId , @Param ( "runningInstanceId" ) int runningInstanceId ) ;
boolean updateNextProcessIdById ( @Param ( "thisInstanceId" ) int thisInstanceId , @Param ( "runningInstanceId" ) int runningInstanceId ) ;
ProcessInstance loadNextProcess4Serial ( @Param ( "processDefinitionCode" ) Long processDefinitionCode , @Param ( "state" ) int state ) ;
ProcessInstance loadNextProcess4Serial ( @Param ( "processDefinitionCode" ) Long processDefinitionCode , @Param ( "state" ) int state ) ;
}