Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Stardust/Knowledge Base/API/ExamplesofAPIUsage/StartProcess"
< Stardust | Knowledge Base
Line 11: | Line 11: | ||
[[Image:Stardust EmbeddedAPIStartProcess.png|425x250px|Stardust Embedded API Start Process]] | [[Image:Stardust EmbeddedAPIStartProcess.png|425x250px|Stardust Embedded API Start Process]] | ||
− | ==== Implementation<br> ==== | + | ==== Implementation<br> ==== |
− | Exception handling<br><br> | + | '''Exception handling'''<br> |
+ | |||
+ | To keep the example code clear the exception handling is very simple. If you use this code productive, please add appropriate exception handling! | ||
+ | |||
+ | '''Missing parts'''<br> | ||
+ | |||
+ | The missing code fragments ([...]) can be found here. They are omnited to present only the new parts. | ||
+ | |||
+ | <br><br><br> | ||
<br> | <br> |
Revision as of 05:59, 17 November 2011
Start a Process
Purpose
Creating and starting a process instance is quite easy via the API. Each process instance will process its activity instances until it has to wait on an external event like a JMS response, a mail or a user interaction.
Requirements
You need an initialized workflow service and the id of the process definition you want to start. Reference Model.
Implementation
Exception handling
To keep the example code clear the exception handling is very simple. If you use this code productive, please add appropriate exception handling!
Missing parts
The missing code fragments ([...]) can be found here. They are omnited to present only the new parts.