public static class BpmEntitiesService.ProcInstanceDetails
extends java.lang.Object
implements java.io.Serializable
ProcInstance
entity containing process actors
and reference to the entity and to the ProcInstance
.
Usage example:
BpmEntitiesService.ProcInstance procInstance = new BpmEntitiesService.ProcInstanceDetails("someProcDefinitionCode") .setEntity(getItem()) .addProcActor("manager", userSession.getCurrentOrSubstitutedUser()) .addProcActor("storekeeper", someOtherUser);
Constructor and Description |
---|
ProcInstanceDetails(ProcDefinition procDefinition) |
ProcInstanceDetails(java.lang.String procDefinitionCode) |
Modifier and Type | Method and Description |
---|---|
BpmEntitiesService.ProcInstanceDetails |
addProcActor(ProcRole procRole,
com.haulmont.cuba.security.entity.User user) |
BpmEntitiesService.ProcInstanceDetails |
addProcActor(java.lang.String procRoleCode,
com.haulmont.cuba.security.entity.User user) |
com.haulmont.cuba.core.entity.Entity |
getEntity() |
java.util.List<com.haulmont.bpm.service.BpmEntitiesService.ProcInstanceDetails.ProcActorDetails> |
getProcActorDetails() |
ProcDefinition |
getProcDefinition() |
java.lang.String |
getProcDefinitionCode() |
BpmEntitiesService.ProcInstanceDetails |
setEntity(com.haulmont.cuba.core.entity.Entity entity) |
public ProcInstanceDetails(java.lang.String procDefinitionCode)
public ProcInstanceDetails(ProcDefinition procDefinition)
public BpmEntitiesService.ProcInstanceDetails addProcActor(java.lang.String procRoleCode, com.haulmont.cuba.security.entity.User user)
public BpmEntitiesService.ProcInstanceDetails addProcActor(ProcRole procRole, com.haulmont.cuba.security.entity.User user)
public BpmEntitiesService.ProcInstanceDetails setEntity(com.haulmont.cuba.core.entity.Entity entity)
public ProcDefinition getProcDefinition()
public java.lang.String getProcDefinitionCode()
public java.util.List<com.haulmont.bpm.service.BpmEntitiesService.ProcInstanceDetails.ProcActorDetails> getProcActorDetails()
public com.haulmont.cuba.core.entity.Entity getEntity()