Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jbpm.workflow.execution.impl
Class FlowImpl  view FlowImpl download FlowImpl.java

java.lang.Object
  extended byorg.jbpm.util.db.PersistentObject
      extended byorg.jbpm.workflow.execution.impl.FlowImpl
All Implemented Interfaces:
org.jbpm.workflow.execution.Flow, java.io.Serializable

public class FlowImpl
extends org.jbpm.util.db.PersistentObject
implements org.jbpm.workflow.execution.Flow


Field Summary
private  java.lang.String actorId
           
private  java.util.Collection attributeInstances
           
private  java.util.Collection children
           
private  java.util.Date end
           
private static org.apache.log4j.Logger log
           
private  java.util.Collection logs
           
private  java.lang.String name
           
private  org.jbpm.workflow.definition.Node node
           
private static org.jbpm.workflow.organisation.OrganisationUtil organisationUtil
           
private  org.jbpm.workflow.execution.Flow parent
           
private  java.lang.Boolean parentReactivation
           
private  org.jbpm.workflow.execution.ProcessInstance processInstance
           
private  java.util.Date start
           
private  java.util.Collection subProcessInstances
           
 
Fields inherited from class org.jbpm.util.db.PersistentObject
id
 
Constructor Summary
FlowImpl()
           
FlowImpl(java.lang.String name, FlowImpl parent, org.jbpm.workflow.definition.impl.ProcessBlockImpl processBlock)
           
FlowImpl(java.lang.String actorId, ProcessInstanceImpl processInstance)
           
 
Method Summary
 void createAttributeInstances(java.util.Collection attributes)
           
 org.jbpm.workflow.log.impl.LogImpl createLog(org.jbpm.workflow.definition.EventType eventType)
           
 org.jbpm.workflow.log.impl.LogImpl createLog(java.lang.String actorId, org.jbpm.workflow.definition.EventType eventType)
           
 org.jbpm.workflow.organisation.Actor getActor()
          specifies which User or Group is supposed to act upon the Flow.
 java.lang.String getActorId()
           
 java.util.Collection getAttributeInstances()
          are the flow-local attributes.
 java.util.Collection getChildren()
          is the collection of child-Flows for this Flow.
 java.util.Date getEnd()
          is the time at which this flow ended, null if it didn't end yet.
 java.util.Collection getLogs()
          are the logged events related to this flow.
 java.lang.String getName()
          is the name of the flow.
 org.jbpm.workflow.definition.Node getNode()
          is a pointer to the org.jbpm.workflow.definition.Node in the activity diagram that represents the state of this flow.
 org.jbpm.workflow.execution.Flow getParent()
          is the parent-Flow of this flow.
 java.lang.Boolean getParentReactivation()
           
 org.jbpm.workflow.execution.ProcessInstance getProcessInstance()
          is the org.jbpm.workflow.execution.ProcessInstance of this flow.
 java.util.Date getStart()
          is the time at which this flow started.
 org.jbpm.workflow.execution.ProcessInstance getSubProcessInstance()
          is the sub-process-instance on which this flow is waiting in a sub-process-activity.
private  java.util.Collection getSubProcessInstances()
           
 boolean isActive()
           
 boolean isRootFlow()
          tells if this flow is the root-flow of a processInstance.
 void setActorId(java.lang.String actorId)
           
 void setAttributeInstances(java.util.Collection attributeInstances)
           
 void setChildren(java.util.Collection children)
           
 void setEnd(java.util.Date end)
           
 void setLogs(java.util.Collection logs)
           
 void setName(java.lang.String name)
           
 void setNode(org.jbpm.workflow.definition.Node node)
           
 void setParent(org.jbpm.workflow.execution.Flow parent)
           
 void setParentReactivation(java.lang.Boolean parentReactivation)
           
 void setProcessInstance(org.jbpm.workflow.execution.ProcessInstance processInstance)
           
 void setStart(java.util.Date start)
           
 void setSubProcessInstance(org.jbpm.workflow.execution.ProcessInstance subProcessInstance)
           
private  void setSubProcessInstances(java.util.Collection subProcessInstances)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class org.jbpm.util.db.PersistentObject
getId, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jbpm.workflow.execution.Flow
getId
 

Field Detail

name

private java.lang.String name

actorId

private java.lang.String actorId

start

private java.util.Date start

end

private java.util.Date end

parentReactivation

private java.lang.Boolean parentReactivation

node

private org.jbpm.workflow.definition.Node node

processInstance

private org.jbpm.workflow.execution.ProcessInstance processInstance

subProcessInstances

private java.util.Collection subProcessInstances

attributeInstances

private java.util.Collection attributeInstances

parent

private org.jbpm.workflow.execution.Flow parent

children

private java.util.Collection children

logs

private java.util.Collection logs

organisationUtil

private static final org.jbpm.workflow.organisation.OrganisationUtil organisationUtil

log

private static final org.apache.log4j.Logger log
Constructor Detail

FlowImpl

public FlowImpl()

FlowImpl

public FlowImpl(java.lang.String actorId,
                ProcessInstanceImpl processInstance)

FlowImpl

public FlowImpl(java.lang.String name,
                FlowImpl parent,
                org.jbpm.workflow.definition.impl.ProcessBlockImpl processBlock)
Method Detail

createAttributeInstances

public void createAttributeInstances(java.util.Collection attributes)

getName

public java.lang.String getName()
Description copied from interface: org.jbpm.workflow.execution.Flow
is the name of the flow.

Specified by:
getName in interface org.jbpm.workflow.execution.Flow

setName

public void setName(java.lang.String name)

getActorId

public java.lang.String getActorId()

setActorId

public void setActorId(java.lang.String actorId)

getActor

public org.jbpm.workflow.organisation.Actor getActor()
Description copied from interface: org.jbpm.workflow.execution.Flow
specifies which User or Group is supposed to act upon the Flow.

Specified by:
getActor in interface org.jbpm.workflow.execution.Flow

getStart

public java.util.Date getStart()
Description copied from interface: org.jbpm.workflow.execution.Flow
is the time at which this flow started.

Specified by:
getStart in interface org.jbpm.workflow.execution.Flow

setStart

public void setStart(java.util.Date start)

getEnd

public java.util.Date getEnd()
Description copied from interface: org.jbpm.workflow.execution.Flow
is the time at which this flow ended, null if it didn't end yet.

Specified by:
getEnd in interface org.jbpm.workflow.execution.Flow

setEnd

public void setEnd(java.util.Date end)

getParentReactivation

public java.lang.Boolean getParentReactivation()

setParentReactivation

public void setParentReactivation(java.lang.Boolean parentReactivation)

getNode

public org.jbpm.workflow.definition.Node getNode()
Description copied from interface: org.jbpm.workflow.execution.Flow
is a pointer to the org.jbpm.workflow.definition.Node in the activity diagram that represents the state of this flow.

Specified by:
getNode in interface org.jbpm.workflow.execution.Flow

setNode

public void setNode(org.jbpm.workflow.definition.Node node)

getProcessInstance

public org.jbpm.workflow.execution.ProcessInstance getProcessInstance()
Description copied from interface: org.jbpm.workflow.execution.Flow
is the org.jbpm.workflow.execution.ProcessInstance of this flow. The org.jbpm.workflow.execution.ProcessInstance is associated with the upper-most parent of this flow. Flows are hierarchically ordered as described in the general-class-description part above.

Specified by:
getProcessInstance in interface org.jbpm.workflow.execution.Flow

setProcessInstance

public void setProcessInstance(org.jbpm.workflow.execution.ProcessInstance processInstance)

getAttributeInstances

public java.util.Collection getAttributeInstances()
Description copied from interface: org.jbpm.workflow.execution.Flow
are the flow-local attributes.

Specified by:
getAttributeInstances in interface org.jbpm.workflow.execution.Flow

setAttributeInstances

public void setAttributeInstances(java.util.Collection attributeInstances)

getSubProcessInstances

private java.util.Collection getSubProcessInstances()

setSubProcessInstances

private void setSubProcessInstances(java.util.Collection subProcessInstances)

getParent

public org.jbpm.workflow.execution.Flow getParent()
Description copied from interface: org.jbpm.workflow.execution.Flow
is the parent-Flow of this flow. Flows are hierarchically ordered as described in the general-class-description part above.

Specified by:
getParent in interface org.jbpm.workflow.execution.Flow

setParent

public void setParent(org.jbpm.workflow.execution.Flow parent)

getChildren

public java.util.Collection getChildren()
Description copied from interface: org.jbpm.workflow.execution.Flow
is the collection of child-Flows for this Flow. Flows are hierarchically ordered as described in the general-class-description part above. * @return a Collection of Flow's

Specified by:
getChildren in interface org.jbpm.workflow.execution.Flow

setChildren

public void setChildren(java.util.Collection children)

getLogs

public java.util.Collection getLogs()
Description copied from interface: org.jbpm.workflow.execution.Flow
are the logged events related to this flow.

Specified by:
getLogs in interface org.jbpm.workflow.execution.Flow

setLogs

public void setLogs(java.util.Collection logs)

createLog

public org.jbpm.workflow.log.impl.LogImpl createLog(org.jbpm.workflow.definition.EventType eventType)

createLog

public org.jbpm.workflow.log.impl.LogImpl createLog(java.lang.String actorId,
                                                    org.jbpm.workflow.definition.EventType eventType)

getSubProcessInstance

public org.jbpm.workflow.execution.ProcessInstance getSubProcessInstance()
Description copied from interface: org.jbpm.workflow.execution.Flow
is the sub-process-instance on which this flow is waiting in a sub-process-activity.

Specified by:
getSubProcessInstance in interface org.jbpm.workflow.execution.Flow

setSubProcessInstance

public void setSubProcessInstance(org.jbpm.workflow.execution.ProcessInstance subProcessInstance)

isRootFlow

public boolean isRootFlow()
Description copied from interface: org.jbpm.workflow.execution.Flow
tells if this flow is the root-flow of a processInstance.

Specified by:
isRootFlow in interface org.jbpm.workflow.execution.Flow

isActive

public boolean isActive()

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).