|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.stardust.engine.api.dto.RuntimeObjectDetails
org.eclipse.stardust.engine.api.dto.ProcessInstanceDetails
public class ProcessInstanceDetails
Many methods of the CARNOT EJBs return detail objects. Detail objects are serializable helper objects passed by value to the client. They can, for instance, pass the necessary information from the audit trail to the embedding application in a dynamic way to guarantee an optimum of performance. Instances of the class ProcessInstanceDetails are always referring to runtime objects - process instances - and contain data of these runtime objects (e.g. their OID, ID or start timestamp).
| Field Summary | |
|---|---|
static java.lang.String |
PRP_PI_DETAILS_OPTIONS
|
| Fields inherited from interface org.eclipse.stardust.engine.api.runtime.ProcessInstance |
|---|
UNKNOWN_OID |
| Fields inherited from interface org.eclipse.stardust.engine.api.runtime.IDescriptorProvider |
|---|
PRP_DESCRIPTOR_IDS, PRP_PROPVIDE_DESCRIPTORS |
| Method Summary | |
|---|---|
ProcessInstanceAttributes |
getAttributes()
Retrieves extended attributes. |
java.util.List<DataPath> |
getDescriptorDefinitions()
|
java.util.Map<java.lang.String,java.lang.Object> |
getDescriptors()
|
java.lang.Object |
getDescriptorValue(java.lang.String id)
|
ProcessInstanceDetailsLevel |
getDetailsLevel()
Retrieves the level of details for process instance. |
java.util.EnumSet<ProcessInstanceDetailsOptions> |
getDetailsOptions()
Retrieves the options used for details creation for process instance. |
java.util.List<HistoricalEvent> |
getHistoricalEvents()
Gets a list of requested additional data like notes, delegations, state changes and exceptions. |
java.util.List<org.eclipse.stardust.engine.api.runtime.ProcessInstanceLink> |
getLinkedProcessInstances()
Returns process instance links which have this process instance as source or target. |
long |
getParentProcessInstanceOid()
Gets the oid of the parent process instance. |
PermissionState |
getPermission(java.lang.String permissionId)
Returns the permission state of the given permission id for the current user. |
int |
getPriority()
Gets the priority of the process instance. |
java.lang.String |
getProcessID()
Gets ID of this process instance's definition. |
java.lang.String |
getProcessName()
Gets name of this process instance's definition. |
long |
getRootProcessInstanceOID()
Gets the OID of the ultimate root process instance. |
java.util.Map<java.lang.String,java.lang.Object> |
getRuntimeAttributes()
|
ProcessInstance |
getScopeProcessInstance()
Gets the the scope process instance the data values of this process instance are bound to. |
long |
getScopeProcessInstanceOID()
Gets the OID of the scope process instance the data values of this process instance are bound to. |
long |
getStartingActivityInstanceOID()
|
User |
getStartingUser()
Gets the User object of the user that have started the process instance. |
java.util.Date |
getStartTime()
Gets the time when this process instance was created. |
ProcessInstanceState |
getState()
Gets the current state of the process instance. |
java.util.Date |
getTerminationTime()
Gets the time when this process instance was terminated. |
boolean |
isCaseProcessInstance()
Allows to check if the process instance is a case process instance which is used to group other process instances. |
void |
loadDescriptors(org.eclipse.stardust.engine.core.runtime.beans.IProcessInstance processInstance)
|
java.lang.String |
toString()
A human readable representation of basic aspects of this activity instance. |
| Methods inherited from class org.eclipse.stardust.engine.api.dto.RuntimeObjectDetails |
|---|
equals, getModelElementID, getModelElementOID, getModelOID, getOID |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.stardust.engine.api.runtime.RuntimeObject |
|---|
getModelElementID, getModelElementOID, getModelOID, getOID |
| Field Detail |
|---|
public static final java.lang.String PRP_PI_DETAILS_OPTIONS
| Method Detail |
|---|
public java.lang.String getProcessID()
ProcessInstanceRuntimeObject.getModelElementID().
getProcessID in interface ProcessInstanceProcessInstance.getProcessName()public java.lang.String getProcessName()
ProcessInstance
getProcessName in interface ProcessInstanceProcessInstance.getProcessID()public long getRootProcessInstanceOID()
ProcessInstanceRuntimeObject.getOID() for
top-level processes.
getRootProcessInstanceOID in interface ProcessInstancepublic long getScopeProcessInstanceOID()
ProcessInstance
getScopeProcessInstanceOID in interface ProcessInstancepublic ProcessInstance getScopeProcessInstance()
ProcessInstance
getScopeProcessInstance in interface ProcessInstancepublic int getPriority()
ProcessInstance
getPriority in interface ProcessInstancepublic java.util.Date getStartTime()
ProcessInstance
getStartTime in interface ProcessInstancepublic java.util.Date getTerminationTime()
ProcessInstance
getTerminationTime in interface ProcessInstancepublic User getStartingUser()
ProcessInstanceUser object of the user that have started the process instance.
getStartingUser in interface ProcessInstanceUser object of the user.public ProcessInstanceState getState()
ProcessInstance
getState in interface ProcessInstancepublic long getStartingActivityInstanceOID()
public long getParentProcessInstanceOid()
ProcessInstanceProcessInstanceDetailsOptions.WITH_HIERARCHY_INFO has been set at
ProcessInstanceDetailsPolicy.
getParentProcessInstanceOid in interface ProcessInstanceProcessInstance.UNKNOWN_OID will be
returned if an error occurred or details option has not been set.public java.util.Map<java.lang.String,java.lang.Object> getDescriptors()
public java.lang.Object getDescriptorValue(java.lang.String id)
getDescriptorValue in interface org.eclipse.stardust.engine.api.runtime.IDescriptorProviderpublic java.util.List<DataPath> getDescriptorDefinitions()
getDescriptorDefinitions in interface org.eclipse.stardust.engine.api.runtime.IDescriptorProviderpublic void loadDescriptors(org.eclipse.stardust.engine.core.runtime.beans.IProcessInstance processInstance)
public java.lang.String toString()
Support Case Management: Create Case (02/09/20 10:10:10)
toString in class java.lang.Objectpublic ProcessInstanceDetailsLevel getDetailsLevel()
ProcessInstance
getDetailsLevel in interface ProcessInstancepublic java.util.EnumSet<ProcessInstanceDetailsOptions> getDetailsOptions()
ProcessInstance
getDetailsOptions in interface ProcessInstancepublic ProcessInstanceAttributes getAttributes()
ProcessInstance
getAttributes in interface ProcessInstancepublic java.util.Map<java.lang.String,java.lang.Object> getRuntimeAttributes()
getRuntimeAttributes in interface ProcessInstancepublic java.util.List<HistoricalEvent> getHistoricalEvents()
ProcessInstanceHistoricalEventPolicy applied to
ProcessInstanceQuery. By default this list will be empty as
retrieval might degrade query performance.
getHistoricalEvents in interface ProcessInstanceHistoricalEvent,
HistoricalEventPolicypublic java.util.List<org.eclipse.stardust.engine.api.runtime.ProcessInstanceLink> getLinkedProcessInstances()
ProcessInstanceProcessInstanceDetailsOptions.WITH_LINK_INFO has been set at
ProcessInstanceDetailsPolicy.
getLinkedProcessInstances in interface ProcessInstancepublic boolean isCaseProcessInstance()
ProcessInstance
isCaseProcessInstance in interface ProcessInstanceWorkflowService.createCase(String, String, long[]),
WorkflowService.joinCase(long, long[]),
WorkflowService.leaveCase(long, long[]),
WorkflowService.mergeCases(long, long[], String)public PermissionState getPermission(java.lang.String permissionId)
ProcessInstance
getPermission in interface ProcessInstance
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||