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