Java Doc for WorkflowEngine.java in  » Workflow-Engines » obe-1.0 » org » obe » engine » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » obe 1.0 » org.obe.engine 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.obe.engine.WorkflowEngine

WorkflowEngine
public class WorkflowEngine implements WorkflowEngineIntf,WorkflowService(Code)
The workflow engine provides the means to create and execute workflow processes, as well as means for querying open activities and work items.

N.B. Applications which embed OBE should never call WorkflowEngine directly; instead, they should call via one of the WMClient implementations, which provides authentication, authorization and transaction control.
author:
   Adrian Price
author:
   Anthony Eden




Constructor Summary
public  WorkflowEngine()
    
public  WorkflowEngine(ServiceManager svcMgr)
    

Method Summary
 ProcessInstance_createProcessInstance(String processDefinitionId, String processInstanceName, String parentActivityInstanceId, boolean internal)
    
public  voidabortProcessInstance(String processInstanceId)
     Abort the specified process instance.
public  voidabortProcessInstances(String processDefinitionId, WMFilter filter)
     Abort the process instances which were spawned from the given process definition and which match the specified filter.
public  voidassignActivityInstanceAttribute(String processInstanceId, String activityInstanceId, String attributeName, Object attributeValue)
     Set the specified activity attribute value.
public  voidassignActivityInstancesAttribute(String processDefinitionId, String activityDefinitionId, WMFilter filter, String attributeName, Object attributeValue)
     Set the specified activity attribute value for the activity instances which were spawned from the specified process and activity definition and which match the filter.
public  voidassignProcessInstanceAttribute(String processInstanceId, String attributeName, Object attributeValue)
     Set the specified process instance attribute value.
public  voidassignProcessInstancesAttribute(String processDefinitionId, WMFilter filter, String attributeName, Object attributeValue)
     Set the process instance attribute value for the process instances spawned from the specified process definition which match the given filter.
public  voidassignWorkItemAttribute(String processInstanceId, String workItemId, String attributeName, Object attributeValue)
     Set the specified work item attribute value.
 voidcascadeActivityInstanceState(WorkflowProcess workflow, Activity activity, ActivityInstance activityInstance, int activityState, boolean throwActivityException, int workItemState, boolean throwWorkItemException, boolean forceTransitions)
    
 voidcascadeProcessInstanceState(WorkflowProcess workflow, ProcessInstance processInstance, int processState, boolean throwProcessException, int activityState, boolean throwActivityException, int workItemState, boolean throwWorkItemException, boolean forceTransitions)
    
public  voidchangeActivityInstanceState(String processInstanceId, String activityInstanceId, WMActivityInstanceState newState)
    
public  voidchangeActivityInstanceState(String processInstanceId, String activityInstanceId, WMActivityInstanceState newState, boolean allowAutoStart)
     Change the activity instance state.
public  voidchangeActivityInstancesState(String processDefinitionId, String activityDefinitionId, WMFilter filter, WMActivityInstanceState newState)
     Change the activity instance states for the activities spawned from the given process definition which match the filter.
public  voidchangeProcessDefinitionState(String processDefinitionId, WMProcessDefinitionState newState)
     Change the process definition state.
public  voidchangeProcessInstanceState(String processInstanceId, WMProcessInstanceState newState)
     Change the process instance state.
public  voidchangeProcessInstancesState(String processDefinitionId, WMFilter filter, WMProcessInstanceState newState)
     Change the process instance state for all of the process instances spawned from the given process definition.
public  voidchangeWorkItemState(String processInstanceId, String workItemId, WMWorkItemState newState)
    
public  voidcompleteWorkItem(String processInstanceId, String workItemId)
     Complete the specified work item.
public  StringcreatePackage(XPDLPackage pkg)
    
public  StringcreatePackage(String content, String contentType)
     Creates a package using the supplied content.
Parameters:
  content - Package definition in XPDL format.
Parameters:
  contentType - The MIME content type of the process definition.
public  StringcreateProcessInstance(String processDefinitionId, String processInstanceName)
     Creates a new process instance for the given process definition.
public  StringcreateProcessInstanceVersioned(String name, String processInstanceName)
     Creates a new instance of the named workflow process.
public  voidcreateTriggers(XPDLPackage pkg)
    
public  intdeleteAuditEntries(WMFilter filter)
    
public  voiddeletePackage(String packageId)
     Permanently deletes the specified package.
public  voiddeleteProcessInstance(String processInstanceId)
     Permanently deletes the specified process instance.
public  voiddeleteProcessInstances(String processDefinitionId, WMFilter filter)
     Permanently deletes the specified process instance.
public  voiddeleteTriggers(XPDLPackage pkg, boolean workflowTriggersOnly)
    
public  ToolInvocation[]executeWorkItem(String processInstanceId, String workItemId)
    
public  voidexit()
    
 voidfindCreateWorkItems(WorkflowProcess workflow, Activity activity, ProcessInstance processInstance, ActivityInstance activityInstance, boolean refresh)
    
public  WMActivityInstancegetActivityInstance(String processInstanceId, String activityInstanceId)
     Get the specified activity instance.
public  WMAttributegetActivityInstanceAttributeValue(String processInstanceId, String activityInstanceId, String attributeName)
     Get the specified activity instance attribute value.
Parameters:
  processInstanceId - The process instance id.
Parameters:
  activityInstanceId - The activity instance id.
Parameters:
  attributeName - The attribute name.
public static  WorkflowEnginegetEngine()
     Returns a reference to the current thread's workflow engine.
public  XPDLPackagegetPackage(String packageId)
    
public  StringgetPackageContent(String packageId, String contentType)
     Retrieves the content of the specified package.
Parameters:
  packageId - The package ID.
public  WMProcessInstancegetProcessInstance(String processInstanceId)
     Get the specified process instance.
public  WMAttributegetProcessInstanceAttributeValue(String processInstanceId, String attributeName)
     Get the specified process attribute value.
public  ServiceManagergetServiceManager()
    
public  StringgetServiceName()
    
public  WMWorkItemgetWorkItem(String processInstanceId, String workItemId)
     Get the specified work item.
public  WMAttributegetWorkItemAttributeValue(String processInstanceId, String workItemId, String attributeName)
     Get the specified work item attribute value.
public  voidinit()
    
public  WMAttribute[]listActivityInstanceAttributes(String processInstanceId, String activityInstanceId, WMFilter filter, boolean countFlag)
     Retrieve a list of activity instance attributes.
Parameters:
  processInstanceId - The ID of the process instance.
Parameters:
  activityInstanceId - The ID of the activity instance.
Parameters:
  filter - A filter specification.
public  WMActivityInstanceState[]listActivityInstanceStates(String processInstanceId, String activityInstanceId, WMFilter filter, boolean countFlag)
     Retrieve a list of activity instance states.
Parameters:
  processInstanceId - The ID of the process instance.
Parameters:
  activityInstanceId - The ID of the activity instance.
Parameters:
  filter - A Filter specification.
public  WMActivityInstance[]listActivityInstances(WMFilter filter, boolean countFlag)
     Retrieve a list of activity instance states.
Parameters:
  filter - A Filter specification.
public  WMAAuditEntry[]listAuditEntries(WMFilter filter)
    
public  WMProcessDefinitionState[]listProcessDefinitionStates(WMFilter filter, boolean countFlag)
     Retrieve a list of process definition states.
Parameters:
  filter - A Filter specification.
public  WMProcessDefinition[]listProcessDefinitions(WMFilter filter, boolean countFlag)
     Retrieve a list of process definitions.
public  WMAttribute[]listProcessInstanceAttributes(String processInstanceId, WMFilter filter, boolean countFlag)
     Retrieve a list of process instance attributes.
public  WMProcessInstanceState[]listProcessInstanceStates(String processInstanceId, WMFilter filter, boolean countFlag)
     Retrieve a list of process instance states.
public  WMProcessInstance[]listProcessInstances(WMFilter filter, boolean countFlag)
     Retrieve a list of process instances.
Parameters:
  filter - A Filter specification.
public  WMAttribute[]listWorkItemAttributes(String processInstanceId, String workItemId, WMFilter filter, boolean countFlag)
     Retrieve a list of work item attributes.
Parameters:
  filter - A Filter specification.
public  WMWorkItemState[]listWorkItemStates(String processInstanceId, String workItemId, WMFilter filter, boolean countFlag)
    
public  WMWorkItem[]listWorkItems(WMFilter filter, boolean countFlag)
     Retrieve a list of work items.
Parameters:
  filter - A Filter specification.
public  voidraiseEvent(ApplicationEvent event, String[] correlationKeys)
    
public  voidreassignWorkItem(String sourceUser, String targetUser, String processInstanceId, String workItemId)
     Reassign the specified work item to another user.
 voidrecomputeDates(ProcessInstance procInst, ActivityInstance activityInstance)
    
public  voidrefreshWorkItems(String processInstanceId)
    
public  voidsetPackageContent(String packageId, String content, String contentType)
     Sets the content of the specified package.
public  StringstartProcess(String processInstanceId)
     Start a specific process.
 booleanstartProcess(ProcessInstance processInstance)
    
public  voidterminateProcessInstance(String processInstanceId)
     Terminates a process instance.
public  voidterminateProcessInstances(String processDefinitionId, WMFilter filter)
     Terminates the process instances which were spawned from the specified process definition and which match the specified filter.
public  StringtoString()
    
public  voidtoolFinished(String processInstanceId, String workItemId, int appStatus, Parameter[] parms)
    
public  voidtoolStarted(String processInstanceId, String workItemId)
    
public  voidupdatePackage(XPDLPackage pkg)
    
public  voidupdateTriggers(XPDLPackage pkg)
    


Constructor Detail
WorkflowEngine
public WorkflowEngine()(Code)



WorkflowEngine
public WorkflowEngine(ServiceManager svcMgr)(Code)




Method Detail
_createProcessInstance
ProcessInstance _createProcessInstance(String processDefinitionId, String processInstanceName, String parentActivityInstanceId, boolean internal) throws WMWorkflowException(Code)



abortProcessInstance
public void abortProcessInstance(String processInstanceId) throws WMWorkflowException(Code)
Abort the specified process instance.
Parameters:
  processInstanceId - The process instance ID
throws:
  WMWorkflowException - Any exception



abortProcessInstances
public void abortProcessInstances(String processDefinitionId, WMFilter filter) throws WMWorkflowException(Code)
Abort the process instances which were spawned from the given process definition and which match the specified filter.
Parameters:
  processDefinitionId - The process definition ID
Parameters:
  filter - The filter
throws:
  WMWorkflowException - Any exception



assignActivityInstanceAttribute
public void assignActivityInstanceAttribute(String processInstanceId, String activityInstanceId, String attributeName, Object attributeValue) throws WMWorkflowException(Code)
Set the specified activity attribute value.
Parameters:
  processInstanceId - The process instance id
Parameters:
  activityInstanceId - The activity instance id
Parameters:
  attributeName - The attribute name
Parameters:
  attributeValue - The attribute value
throws:
  WMWorkflowException - Workflow client exception



assignActivityInstancesAttribute
public void assignActivityInstancesAttribute(String processDefinitionId, String activityDefinitionId, WMFilter filter, String attributeName, Object attributeValue) throws WMWorkflowException(Code)
Set the specified activity attribute value for the activity instances which were spawned from the specified process and activity definition and which match the filter.
Parameters:
  processDefinitionId - The process definition id
Parameters:
  activityDefinitionId - The activity definition id
Parameters:
  filter - The filter
Parameters:
  attributeName - The attribute name
Parameters:
  attributeValue - The attribute value
throws:
  WMWorkflowException - Workflow client exception



assignProcessInstanceAttribute
public void assignProcessInstanceAttribute(String processInstanceId, String attributeName, Object attributeValue) throws WMWorkflowException(Code)
Set the specified process instance attribute value.
Parameters:
  processInstanceId - The process instance id
Parameters:
  attributeName - The attribute name
Parameters:
  attributeValue - The attribute value
throws:
  WMWorkflowException - Workflow client exception



assignProcessInstancesAttribute
public void assignProcessInstancesAttribute(String processDefinitionId, WMFilter filter, String attributeName, Object attributeValue) throws WMWorkflowException(Code)
Set the process instance attribute value for the process instances spawned from the specified process definition which match the given filter.
Parameters:
  processDefinitionId - The process definition id
Parameters:
  filter - The filter
Parameters:
  attributeName - The attribute name
Parameters:
  attributeValue - The attribute value
throws:
  WMWorkflowException - Workflow client exception



assignWorkItemAttribute
public void assignWorkItemAttribute(String processInstanceId, String workItemId, String attributeName, Object attributeValue) throws WMWorkflowException(Code)
Set the specified work item attribute value.
Parameters:
  processInstanceId - The process instance id
Parameters:
  workItemId - The work item id
Parameters:
  attributeName - The attribute name
Parameters:
  attributeValue - The attribute value
throws:
  WMWorkflowException - Workflow client exception



cascadeActivityInstanceState
void cascadeActivityInstanceState(WorkflowProcess workflow, Activity activity, ActivityInstance activityInstance, int activityState, boolean throwActivityException, int workItemState, boolean throwWorkItemException, boolean forceTransitions) throws WMWorkflowException(Code)



cascadeProcessInstanceState
void cascadeProcessInstanceState(WorkflowProcess workflow, ProcessInstance processInstance, int processState, boolean throwProcessException, int activityState, boolean throwActivityException, int workItemState, boolean throwWorkItemException, boolean forceTransitions) throws WMWorkflowException(Code)



changeActivityInstanceState
public void changeActivityInstanceState(String processInstanceId, String activityInstanceId, WMActivityInstanceState newState) throws WMWorkflowException(Code)



changeActivityInstanceState
public void changeActivityInstanceState(String processInstanceId, String activityInstanceId, WMActivityInstanceState newState, boolean allowAutoStart) throws WMWorkflowException(Code)
Change the activity instance state.
Parameters:
  processInstanceId - The process instance id
Parameters:
  activityInstanceId - The activity instance id
Parameters:
  newState - The new activity instance state
throws:
  WMWorkflowException - Workflow client exception



changeActivityInstancesState
public void changeActivityInstancesState(String processDefinitionId, String activityDefinitionId, WMFilter filter, WMActivityInstanceState newState) throws WMWorkflowException(Code)
Change the activity instance states for the activities spawned from the given process definition which match the filter.
Parameters:
  processDefinitionId - The process definition ID
Parameters:
  activityDefinitionId - The activity definition ID
Parameters:
  filter - The filter
Parameters:
  newState - The new state
throws:
  WMWorkflowException -



changeProcessDefinitionState
public void changeProcessDefinitionState(String processDefinitionId, WMProcessDefinitionState newState) throws WMWorkflowException(Code)
Change the process definition state.
Parameters:
  processDefinitionId - The process definition id
Parameters:
  newState - The new process definition state
throws:
  WMWorkflowException - Workflow client exception



changeProcessInstanceState
public void changeProcessInstanceState(String processInstanceId, WMProcessInstanceState newState) throws WMWorkflowException(Code)
Change the process instance state.
Parameters:
  processInstanceId - The process instance id
Parameters:
  newState - The new process instance state
throws:
  WMWorkflowException - Workflow client exception



changeProcessInstancesState
public void changeProcessInstancesState(String processDefinitionId, WMFilter filter, WMProcessInstanceState newState) throws WMWorkflowException(Code)
Change the process instance state for all of the process instances spawned from the given process definition.
Parameters:
  processDefinitionId - The process definition ID
Parameters:
  filter - The filter
Parameters:
  newState - The new state
throws:
  WMWorkflowException -



changeWorkItemState
public void changeWorkItemState(String processInstanceId, String workItemId, WMWorkItemState newState) throws WMWorkflowException(Code)



completeWorkItem
public void completeWorkItem(String processInstanceId, String workItemId) throws WMWorkflowException(Code)
Complete the specified work item.
Parameters:
  processInstanceId - The process instance id
Parameters:
  workItemId - The work item id
throws:
  WMWorkflowException - Workflow client exception



createPackage
public String createPackage(XPDLPackage pkg) throws WMWorkflowException(Code)



createPackage
public String createPackage(String content, String contentType) throws WMWorkflowException(Code)
Creates a package using the supplied content.
Parameters:
  content - Package definition in XPDL format.
Parameters:
  contentType - The MIME content type of the process definition. The ID of the new package.
throws:
  WMWorkflowException -
throws:
  IllegalArgumentException - if the content type is not supported.



createProcessInstance
public String createProcessInstance(String processDefinitionId, String processInstanceName) throws WMWorkflowException(Code)
Creates a new process instance for the given process definition.
Parameters:
  processDefinitionId - The process definition id
Parameters:
  processInstanceName - The name of the process instance The process instance id
throws:
  WMInvalidProcessDefinitionException - if the process definitiondoes not exist, or is disabled.
throws:
  WMWorkflowException - Workflow client exception



createProcessInstanceVersioned
public String createProcessInstanceVersioned(String name, String processInstanceName) throws WMWorkflowException(Code)
Creates a new instance of the named workflow process. The system instantiates the 'most valid' version of the named process, based on the versioning metadata in the ProcessHeader (ValidFrom, ValidTo).
Parameters:
  name - The process definition name.
Parameters:
  processInstanceName - The name of the process instance. The process instance id.
throws:
  WMInvalidProcessDefinitionException - if the process definitiondoes not exist, is disabled, is under revision, or has no valid versionsas determined for the current system time.
throws:
  WMWorkflowException - Workflow client exception



createTriggers
public void createTriggers(XPDLPackage pkg) throws WMWorkflowException(Code)



deleteAuditEntries
public int deleteAuditEntries(WMFilter filter) throws WMWorkflowException(Code)



deletePackage
public void deletePackage(String packageId) throws WMWorkflowException(Code)
Permanently deletes the specified package.
Parameters:
  packageId - The package ID.
throws:
  WMWorkflowException -



deleteProcessInstance
public void deleteProcessInstance(String processInstanceId) throws WMWorkflowException(Code)
Permanently deletes the specified process instance.
Parameters:
  processInstanceId - The ID of the process instance to delete.
throws:
  WMWorkflowException -



deleteProcessInstances
public void deleteProcessInstances(String processDefinitionId, WMFilter filter) throws WMWorkflowException(Code)
Permanently deletes the specified process instance.
Parameters:
  processDefinitionId - The ID of the process definition for whichinstances are to be deleted.
Parameters:
  filter - Process instance filter.
throws:
  WMWorkflowException -



deleteTriggers
public void deleteTriggers(XPDLPackage pkg, boolean workflowTriggersOnly) throws WMWorkflowException(Code)



executeWorkItem
public ToolInvocation[] executeWorkItem(String processInstanceId, String workItemId) throws WMWorkflowException(Code)



exit
public void exit()(Code)



findCreateWorkItems
void findCreateWorkItems(WorkflowProcess workflow, Activity activity, ProcessInstance processInstance, ActivityInstance activityInstance, boolean refresh) throws WMWorkflowException(Code)



getActivityInstance
public WMActivityInstance getActivityInstance(String processInstanceId, String activityInstanceId) throws WMWorkflowException(Code)
Get the specified activity instance.
Parameters:
  processInstanceId - The process instance id
Parameters:
  activityInstanceId - The activity instance id The activity instance
throws:
  WMWorkflowException - Workflow client exception



getActivityInstanceAttributeValue
public WMAttribute getActivityInstanceAttributeValue(String processInstanceId, String activityInstanceId, String attributeName) throws WMWorkflowException(Code)
Get the specified activity instance attribute value.
Parameters:
  processInstanceId - The process instance id.
Parameters:
  activityInstanceId - The activity instance id.
Parameters:
  attributeName - The attribute name. The attribute.
throws:
  WMWorkflowException - Workflow client exception



getEngine
public static WorkflowEngine getEngine()(Code)
Returns a reference to the current thread's workflow engine. Generally speaking, the engine (which is threadsafe) will be shared amongst all threads. This method is present to support the case where multiple, differently configured engines are running concurrently in the same JVM.

If an engine is not currently associated with the current thread (by virtue of there being an engine call on the JVM call stack for the current thread), this method returns the default WorkflowEngine, creating this if it does not already exist. The default engine is set to the first WorkflowEngine instance to be created. If this method creates the default engine, its ServiceManager and repositories will have the default configuration.

N.B. It is preferable for applications which embed an engine to create it explicitly and retain a global reference to it rather than rely on this method to locate the global instance. The current engine, or the default engine if no engine call iscurrently in progress on the current thread.




getPackage
public XPDLPackage getPackage(String packageId) throws WMWorkflowException(Code)



getPackageContent
public String getPackageContent(String packageId, String contentType) throws WMWorkflowException(Code)
Retrieves the content of the specified package.
Parameters:
  packageId - The package ID. Package definition in XPDL format.
throws:
  WMWorkflowException -



getProcessInstance
public WMProcessInstance getProcessInstance(String processInstanceId) throws WMWorkflowException(Code)
Get the specified process instance.
Parameters:
  processInstanceId - The process instance id The process instance
throws:
  WMWorkflowException - Workflow client exception



getProcessInstanceAttributeValue
public WMAttribute getProcessInstanceAttributeValue(String processInstanceId, String attributeName) throws WMWorkflowException(Code)
Get the specified process attribute value.
Parameters:
  processInstanceId - The process instance id
Parameters:
  attributeName - The attribute name The attribute
throws:
  WMWorkflowException - Workflow client exception



getServiceManager
public ServiceManager getServiceManager()(Code)



getServiceName
public String getServiceName()(Code)



getWorkItem
public WMWorkItem getWorkItem(String processInstanceId, String workItemId) throws WMWorkflowException(Code)
Get the specified work item.
Parameters:
  processInstanceId - The process instance id
Parameters:
  workItemId - The work item id The work item
throws:
  WMWorkflowException - Workflow client exception



getWorkItemAttributeValue
public WMAttribute getWorkItemAttributeValue(String processInstanceId, String workItemId, String attributeName) throws WMWorkflowException(Code)
Get the specified work item attribute value.
Parameters:
  processInstanceId - The process instance id
Parameters:
  workItemId - The work item id
Parameters:
  attributeName - The attribute name The attribute
throws:
  WMWorkflowException - Workflow client exception



init
public void init()(Code)



listActivityInstanceAttributes
public WMAttribute[] listActivityInstanceAttributes(String processInstanceId, String activityInstanceId, WMFilter filter, boolean countFlag) throws WMWorkflowException(Code)
Retrieve a list of activity instance attributes.
Parameters:
  processInstanceId - The ID of the process instance.
Parameters:
  activityInstanceId - The ID of the activity instance.
Parameters:
  filter - A filter specification. An array of matching activity instance attributes.



listActivityInstanceStates
public WMActivityInstanceState[] listActivityInstanceStates(String processInstanceId, String activityInstanceId, WMFilter filter, boolean countFlag) throws WMWorkflowException(Code)
Retrieve a list of activity instance states.
Parameters:
  processInstanceId - The ID of the process instance.
Parameters:
  activityInstanceId - The ID of the activity instance.
Parameters:
  filter - A Filter specification. An array of matching activity instance attributes.



listActivityInstances
public WMActivityInstance[] listActivityInstances(WMFilter filter, boolean countFlag) throws WMWorkflowException(Code)
Retrieve a list of activity instance states.
Parameters:
  filter - A Filter specification. An array of matching activity instance attributes.



listAuditEntries
public WMAAuditEntry[] listAuditEntries(WMFilter filter) throws WMWorkflowException(Code)



listProcessDefinitionStates
public WMProcessDefinitionState[] listProcessDefinitionStates(WMFilter filter, boolean countFlag) throws WMWorkflowException(Code)
Retrieve a list of process definition states.
Parameters:
  filter - A Filter specification. An array of matching process definition states.
throws:
  WMWorkflowException - Workflow client exception



listProcessDefinitions
public WMProcessDefinition[] listProcessDefinitions(WMFilter filter, boolean countFlag) throws WMWorkflowException(Code)
Retrieve a list of process definitions.
Parameters:
  filter - A Filter specification.
Parameters:
  countFlag - The count flag An array of matching process definitions.



listProcessInstanceAttributes
public WMAttribute[] listProcessInstanceAttributes(String processInstanceId, WMFilter filter, boolean countFlag) throws WMWorkflowException(Code)
Retrieve a list of process instance attributes.
Parameters:
  processInstanceId - The process instance id
Parameters:
  filter - The filter or null
Parameters:
  countFlag - True to return count value The query handle
throws:
  WMWorkflowException - Workflow client exception



listProcessInstanceStates
public WMProcessInstanceState[] listProcessInstanceStates(String processInstanceId, WMFilter filter, boolean countFlag) throws WMWorkflowException(Code)
Retrieve a list of process instance states.
Parameters:
  processInstanceId - The process instance id
Parameters:
  filter - A Filter specification.
Parameters:
  countFlag - True to return count value An array of matching process instance states.



listProcessInstances
public WMProcessInstance[] listProcessInstances(WMFilter filter, boolean countFlag) throws WMWorkflowException(Code)
Retrieve a list of process instances.
Parameters:
  filter - A Filter specification. An array of matching process instances.



listWorkItemAttributes
public WMAttribute[] listWorkItemAttributes(String processInstanceId, String workItemId, WMFilter filter, boolean countFlag) throws WMWorkflowException(Code)
Retrieve a list of work item attributes.
Parameters:
  filter - A Filter specification. An array of matching work item attributes.



listWorkItemStates
public WMWorkItemState[] listWorkItemStates(String processInstanceId, String workItemId, WMFilter filter, boolean countFlag) throws WMWorkflowException(Code)



listWorkItems
public WMWorkItem[] listWorkItems(WMFilter filter, boolean countFlag) throws WMWorkflowException(Code)
Retrieve a list of work items.
Parameters:
  filter - A Filter specification. An array of matching work items.



raiseEvent
public void raiseEvent(ApplicationEvent event, String[] correlationKeys) throws WMWorkflowException(Code)



reassignWorkItem
public void reassignWorkItem(String sourceUser, String targetUser, String processInstanceId, String workItemId) throws WMWorkflowException(Code)
Reassign the specified work item to another user.
Parameters:
  sourceUser - The current user
Parameters:
  targetUser - The new user
Parameters:
  processInstanceId - The process instance id
Parameters:
  workItemId - The work item id
throws:
  WMWorkflowException - Workflow client exception



recomputeDates
void recomputeDates(ProcessInstance procInst, ActivityInstance activityInstance)(Code)



refreshWorkItems
public void refreshWorkItems(String processInstanceId) throws WMWorkflowException(Code)



setPackageContent
public void setPackageContent(String packageId, String content, String contentType) throws WMWorkflowException(Code)
Sets the content of the specified package.
Parameters:
  packageId - The package ID.
Parameters:
  content - Package definition in XPDL format.
throws:
  WMWorkflowException -
throws:
  IllegalArgumentException - if the content type is not supported.



startProcess
public String startProcess(String processInstanceId) throws WMWorkflowException(Code)
Start a specific process. The process instance id is retrieved from a previous call to createProcessInstance()
Parameters:
  processInstanceId - The process instance id retrieved froma previous call to createProcessInstance() The new process instance id (which may be the same asthe old.
throws:
  WMWorkflowException - Workflow client exception



startProcess
boolean startProcess(ProcessInstance processInstance) throws WMWorkflowException(Code)



terminateProcessInstance
public void terminateProcessInstance(String processInstanceId) throws WMWorkflowException(Code)
Terminates a process instance.
Parameters:
  processInstanceId - The process instance id
throws:
  WMWorkflowException - Workflow client exception



terminateProcessInstances
public void terminateProcessInstances(String processDefinitionId, WMFilter filter) throws WMWorkflowException(Code)
Terminates the process instances which were spawned from the specified process definition and which match the specified filter.
Parameters:
  processDefinitionId - The process definition ID.
Parameters:
  filter - The filter.
throws:
  WMWorkflowException -



toString
public String toString()(Code)



toolFinished
public void toolFinished(String processInstanceId, String workItemId, int appStatus, Parameter[] parms) throws WMWorkflowException(Code)



toolStarted
public void toolStarted(String processInstanceId, String workItemId) throws WMWorkflowException(Code)



updatePackage
public void updatePackage(XPDLPackage pkg) throws WMWorkflowException(Code)



updateTriggers
public void updateTriggers(XPDLPackage pkg) throws WMWorkflowException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.