Annotation Type StartProcess
-
@Target(METHOD) @Retention(RUNTIME) @Documented public @interface StartProcess
this annotation instructs the component model to start an Activiti business process on sucessful invocation of a method that's annotated with it.- Since:
- 1.0
- Author:
- Josh Long
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description String
processKey
the name of the business process to start (by key)
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
returnProcessInstanceId
returns the ID of theProcessInstance
.
-
-
-
Element Detail
-
processKey
String processKey
the name of the business process to start (by key)
-
-
-
returnProcessInstanceId
boolean returnProcessInstanceId
returns the ID of theProcessInstance
. If specified, it'll only work if the return type of the invocation is compatabile with aProcessInstance
's ID (which is a String, at the moment)- Returns:
- whether to return the process instance ID
- Default:
- false
-
-