|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.camunda.toolkit.jbpm.model.ProcessModel
public abstract class ProcessModel
Abstract Superclass for all ProcessModel's in the client The process model is respsonsible for
Constructor Summary | |
---|---|
ProcessModel(org.jbpm.graph.exe.ExecutionContext context)
|
|
ProcessModel(org.jbpm.graph.def.ProcessDefinition process)
|
|
ProcessModel(org.jbpm.graph.exe.ProcessInstance processInstance)
|
|
ProcessModel(org.jbpm.taskmgmt.exe.TaskInstance taskInstance)
|
Method Summary | |
---|---|
void |
addExceptionListener(com.camunda.commons.exception.ExceptionListener listener)
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
addRemarks()
|
void |
addTransientVariable(java.lang.String name,
java.lang.Object value)
|
void |
addVariable(java.lang.String name,
java.lang.Object value)
|
protected void |
addVariableChangeListener(java.lang.String variableName,
com.camunda.commons.beans.BoundBean bean)
add a property change listener to a BoundBean so if the Bean changes, the variable is added again to the Context (which is necessary when working with the ExecutionContext, because otherwise changes of the object will not be saved!) |
void |
cancel()
|
void |
cancelWorkOnTask()
cancel assignment of the actor so the task is putted back to the pool |
void |
clearCache()
clear local cache of model |
void |
createBusinessObject(java.lang.Object delegate,
java.lang.Object businessObject,
java.lang.String keyVariableName)
|
void |
createBusinessObject(java.lang.Object delegate,
java.lang.String businessObjectVariableName,
java.lang.String keyVariableName)
save a business object into the business logic. |
void |
deleteVariable(java.lang.String name)
|
protected void |
fireExceptionOccured(java.lang.Throwable ex)
|
protected void |
firePropertyChange()
|
protected void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
|
com.camunda.scruffy.actions.GuiAction |
getActionForTransition(org.jbpm.graph.def.Transition transition,
com.camunda.scruffy.components.GuiComponent form)
|
java.awt.Component |
getCurrentAvailableActionButtonBar()
|
java.awt.Component |
getCurrentAvailableActionButtonBar(com.camunda.scruffy.components.GuiComponent form)
|
javax.swing.JMenu |
getCurrentAvailableActionMenu(com.camunda.scruffy.components.GuiComponent forForm)
returns a JMenu Component containing items for all current active actions |
javax.swing.JPopupMenu |
getCurrentAvailableActionPopupMenu(com.camunda.scruffy.components.GuiComponent forForm)
returns a JPopupMenu Component containing items for all current active actions |
com.camunda.scruffy.actions.GuiAction[] |
getCurrentAvailableActions(com.camunda.scruffy.components.GuiComponent form)
|
java.lang.String |
getCurrentStateName()
|
org.jbpm.graph.exe.ExecutionContext |
getExectuionContext()
|
java.lang.Object |
getMainBoBean()
|
org.jbpm.graph.exe.ProcessInstance |
getProcessInstance()
|
java.lang.String |
getProcessName()
|
java.lang.String |
getProcessRemarks()
returns remarks for this process The remarks can be build up on all the process variables to form ONE string to have additional description in the gui |
long |
getRootTokenId()
|
java.lang.String |
getRootTokenIdAsString()
|
long |
getTaskId()
|
java.lang.String |
getTaskIdAsString()
|
org.jbpm.taskmgmt.exe.TaskInstance |
getTaskInstance()
|
long |
getTokenId()
|
java.lang.String |
getTokenIdAsString()
|
java.lang.Object |
getTransientVariable(java.lang.String name)
|
java.lang.Object |
getVariable(java.lang.String name)
|
boolean |
hasProcessEnded()
|
boolean |
isActionsDeactivated()
|
boolean |
isNewProcess()
|
void |
loadAdditionalBusinessVariables()
This method is called on the Server before the result is returned to the client So additioanl business variables can be loaded (in dependency of the process data for ecxample) overwrite to use that logic |
protected static org.apache.log4j.Logger |
log()
|
void |
reload()
Reload the Data in this model |
void |
removeExceptionListener(com.camunda.commons.exception.ExceptionListener listener)
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
saveBusinessObject(java.lang.Object delegate,
java.lang.Object businessObject,
java.lang.String keyVariableName,
boolean create)
|
void |
saveChangesOfAdditionalBusinessVariables(java.util.Map variables)
This method is called on the Server before special command (signal, end-task) are executet. |
void |
setActionsDeactivated(boolean actionsDeactivated)
|
void |
signal()
|
void |
signal(java.lang.String transitionName)
if we have a new process, this process is created and started, if we have a TaskInstance, the task is ended with the given transition, else we send a signal to the RootToken. |
void |
signal(org.jbpm.graph.def.Transition transition)
if we have a new process, this process is created and started, if we have a TaskInstance, the task is ended with the given transition, else we send a signal to the RootToken. |
void |
startWithTask()
assign the current working user as actor in the task to remove it from the pool |
void |
updateBusinessObject(java.lang.Object delegate,
java.lang.Object businessObject,
java.lang.String keyVariableName)
|
void |
updateBusinessObject(java.lang.Object delegate,
java.lang.String businessObjectVariableName,
java.lang.String keyVariableName)
update a business object into the business logic. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProcessModel(org.jbpm.graph.def.ProcessDefinition process)
public ProcessModel(org.jbpm.taskmgmt.exe.TaskInstance taskInstance)
public ProcessModel(org.jbpm.graph.exe.ProcessInstance processInstance)
public ProcessModel(org.jbpm.graph.exe.ExecutionContext context)
Method Detail |
---|
protected static org.apache.log4j.Logger log()
public java.lang.String getProcessName()
public void setActionsDeactivated(boolean actionsDeactivated)
public void removeExceptionListener(com.camunda.commons.exception.ExceptionListener listener)
public void addExceptionListener(com.camunda.commons.exception.ExceptionListener listener)
protected void fireExceptionOccured(java.lang.Throwable ex)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
protected void firePropertyChange()
protected void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
public long getRootTokenId()
public java.lang.String getRootTokenIdAsString()
public long getTaskId()
public java.lang.String getTaskIdAsString()
public long getTokenId()
public java.lang.String getTokenIdAsString()
public boolean isNewProcess()
public void startWithTask()
public void cancelWorkOnTask()
public void cancel()
public java.lang.String getCurrentStateName()
public boolean hasProcessEnded()
public java.lang.String getProcessRemarks() throws java.lang.Exception
java.lang.Exception
public java.lang.Object getVariable(java.lang.String name)
public void addVariable(java.lang.String name, java.lang.Object value)
public void addTransientVariable(java.lang.String name, java.lang.Object value)
public java.lang.Object getTransientVariable(java.lang.String name)
public void deleteVariable(java.lang.String name)
protected void addVariableChangeListener(java.lang.String variableName, com.camunda.commons.beans.BoundBean bean)
variableName
- bean
- public com.camunda.scruffy.actions.GuiAction getActionForTransition(org.jbpm.graph.def.Transition transition, com.camunda.scruffy.components.GuiComponent form)
public com.camunda.scruffy.actions.GuiAction[] getCurrentAvailableActions(com.camunda.scruffy.components.GuiComponent form)
public javax.swing.JPopupMenu getCurrentAvailableActionPopupMenu(com.camunda.scruffy.components.GuiComponent forForm)
forForm
- JBopVisualComponent
public javax.swing.JMenu getCurrentAvailableActionMenu(com.camunda.scruffy.components.GuiComponent forForm)
forForm
- JBopVisualComponent
public java.awt.Component getCurrentAvailableActionButtonBar(com.camunda.scruffy.components.GuiComponent form)
public java.awt.Component getCurrentAvailableActionButtonBar()
public boolean isActionsDeactivated()
public org.jbpm.taskmgmt.exe.TaskInstance getTaskInstance()
public org.jbpm.graph.exe.ProcessInstance getProcessInstance()
public void reload()
public void addRemarks()
public void signal(org.jbpm.graph.def.Transition transition)
public void signal()
public void signal(java.lang.String transitionName)
public void createBusinessObject(java.lang.Object delegate, java.lang.String businessObjectVariableName, java.lang.String keyVariableName)
public void updateBusinessObject(java.lang.Object delegate, java.lang.String businessObjectVariableName, java.lang.String keyVariableName)
public void updateBusinessObject(java.lang.Object delegate, java.lang.Object businessObject, java.lang.String keyVariableName)
public void createBusinessObject(java.lang.Object delegate, java.lang.Object businessObject, java.lang.String keyVariableName)
public void saveBusinessObject(java.lang.Object delegate, java.lang.Object businessObject, java.lang.String keyVariableName, boolean create)
public org.jbpm.graph.exe.ExecutionContext getExectuionContext()
public void loadAdditionalBusinessVariables()
public void saveChangesOfAdditionalBusinessVariables(java.util.Map variables)
public void clearCache()
public java.lang.Object getMainBoBean()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |