|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FormService
Access to form data and rendered forms for starting new process instances and completing tasks.
| Method Summary | |
|---|---|
Object |
getRenderedStartForm(String processDefinitionId)
Rendered form generated by the default build-in form engine for starting a new process instance. |
Object |
getRenderedStartForm(String processDefinitionId,
String formEngineName)
Rendered form generated by the given build-in form engine for starting a new process instance. |
Object |
getRenderedTaskForm(String taskId)
Rendered form generated by the default build-in form engine for completing a task. |
Object |
getRenderedTaskForm(String taskId,
String formEngineName)
Rendered form generated by the given build-in form engine for completing a task. |
StartFormData |
getStartFormData(String processDefinitionId)
Retrieves all data necessary for rendering a form to start a new process instance. |
String |
getStartFormKey(String processDefinitionId)
Retrieves a user defined reference to a start form. |
TaskFormData |
getTaskFormData(String taskId)
Retrieves all data necessary for rendering a form to complete a task. |
String |
getTaskFormKey(String processDefinitionId,
String taskDefinitionKey)
Retrieves a user defined reference to a task form. |
ProcessInstance |
submitStartForm(String processDefinitionId,
Map<String,Object> properties)
Start a new process instance with the user data that was entered as properties in a start form. |
ProcessInstance |
submitStartForm(String processDefinitionId,
String businessKey,
Map<String,Object> properties)
Start a new process instance with the user data that was entered as properties in a start form. |
ProcessInstance |
submitStartFormData(String processDefinitionId,
Map<String,String> properties)
Deprecated. use submitStartForm(String, Map) |
ProcessInstance |
submitStartFormData(String processDefinitionId,
String businessKey,
Map<String,String> properties)
Deprecated. use submitStartForm(String, String, Map) |
void |
submitTaskForm(String taskId,
Map<String,Object> properties)
Completes a task with the user data that was entered as properties in a task form. |
void |
submitTaskFormData(String taskId,
Map<String,String> properties)
Deprecated. use submitTaskForm(String, Map) |
| Method Detail |
|---|
StartFormData getStartFormData(String processDefinitionId)
Object getRenderedStartForm(String processDefinitionId)
Object getRenderedStartForm(String processDefinitionId,
String formEngineName)
@Deprecated
ProcessInstance submitStartFormData(String processDefinitionId,
Map<String,String> properties)
submitStartForm(String, Map)
ProcessInstance submitStartForm(String processDefinitionId,
Map<String,Object> properties)
@Deprecated
ProcessInstance submitStartFormData(String processDefinitionId,
String businessKey,
Map<String,String> properties)
submitStartForm(String, String, Map)
ProcessInstance submitStartForm(String processDefinitionId,
String businessKey,
Map<String,Object> properties)
ProcessInstanceQuery.processInstanceBusinessKey(String). Providing such a business
key is definitely a best practice.
Note that a business key MUST be unique for the given process definition.
Process instance from different process definition are allowed to have the
same business key.
processDefinitionId - the id of the process definition, cannot be null.businessKey - a key that uniquely identifies the process instance in the context or the
given process definition.properties - the properties to pass, can be null.TaskFormData getTaskFormData(String taskId)
Object getRenderedTaskForm(String taskId)
Object getRenderedTaskForm(String taskId,
String formEngineName)
@Deprecated
void submitTaskFormData(String taskId,
Map<String,String> properties)
submitTaskForm(String, Map)
void submitTaskForm(String taskId,
Map<String,Object> properties)
taskId - properties - String getStartFormKey(String processDefinitionId)
String getTaskFormKey(String processDefinitionId,
String taskDefinitionKey)
Task instances returned by any
TaskQuery.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||