org.activiti.engine.impl
类 FormServiceImpl

java.lang.Object
  继承者 org.activiti.engine.impl.ServiceImpl
      继承者 org.activiti.engine.impl.FormServiceImpl
所有已实现的接口:
FormService

public class FormServiceImpl
extends ServiceImpl
implements FormService

作者:
Tom Baeyens, Falko Menge (camunda)

字段摘要
 
从类 org.activiti.engine.impl.ServiceImpl 继承的字段
commandExecutor
 
构造方法摘要
FormServiceImpl()
           
 
方法摘要
 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 engineName)
          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 engineName)
          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.
 void saveFormData(String taskId, Map<String,String> properties)
          Save the data that was entered as properties in a task form.
 ProcessInstance submitStartFormData(String processDefinitionId, Map<String,String> properties)
          Start a new process instance with the user data that was entered as properties in a start form.
 ProcessInstance submitStartFormData(String processDefinitionId, String businessKey, Map<String,String> properties)
          Start a new process instance with the user data that was entered as properties in a start form.
 void submitTaskFormData(String taskId, Map<String,String> properties)
          Completes a task with the user data that was entered as properties in a task form.
 
从类 org.activiti.engine.impl.ServiceImpl 继承的方法
getCommandExecutor, setCommandExecutor
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

FormServiceImpl

public FormServiceImpl()
方法详细信息

getRenderedStartForm

public Object getRenderedStartForm(String processDefinitionId)
从接口 FormService 复制的描述
Rendered form generated by the default build-in form engine for starting a new process instance.

指定者:
接口 FormService 中的 getRenderedStartForm

getRenderedStartForm

public Object getRenderedStartForm(String processDefinitionId,
                                   String engineName)
从接口 FormService 复制的描述
Rendered form generated by the given build-in form engine for starting a new process instance.

指定者:
接口 FormService 中的 getRenderedStartForm

getRenderedTaskForm

public Object getRenderedTaskForm(String taskId)
从接口 FormService 复制的描述
Rendered form generated by the default build-in form engine for completing a task.

指定者:
接口 FormService 中的 getRenderedTaskForm

getRenderedTaskForm

public Object getRenderedTaskForm(String taskId,
                                  String engineName)
从接口 FormService 复制的描述
Rendered form generated by the given build-in form engine for completing a task.

指定者:
接口 FormService 中的 getRenderedTaskForm

getStartFormData

public StartFormData getStartFormData(String processDefinitionId)
从接口 FormService 复制的描述
Retrieves all data necessary for rendering a form to start a new process instance. This can be used to perform rendering of the forms outside of the process engine.

指定者:
接口 FormService 中的 getStartFormData

getTaskFormData

public TaskFormData getTaskFormData(String taskId)
从接口 FormService 复制的描述
Retrieves all data necessary for rendering a form to complete a task. This can be used to perform rendering of the forms outside of the process engine.

指定者:
接口 FormService 中的 getTaskFormData

submitStartFormData

public ProcessInstance submitStartFormData(String processDefinitionId,
                                           Map<String,String> properties)
从接口 FormService 复制的描述
Start a new process instance with the user data that was entered as properties in a start form.

指定者:
接口 FormService 中的 submitStartFormData

submitStartFormData

public ProcessInstance submitStartFormData(String processDefinitionId,
                                           String businessKey,
                                           Map<String,String> properties)
从接口 FormService 复制的描述
Start a new process instance with the user data that was entered as properties in a start form. A business key can be provided to associate the process instance with a certain identifier that has a clear business meaning. For example in an order process, the business key could be an order id. This business key can then be used to easily look up that process instance , see 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.

指定者:
接口 FormService 中的 submitStartFormData
参数:
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.

submitTaskFormData

public void submitTaskFormData(String taskId,
                               Map<String,String> properties)
从接口 FormService 复制的描述
Completes a task with the user data that was entered as properties in a task form.

指定者:
接口 FormService 中的 submitTaskFormData

getStartFormKey

public String getStartFormKey(String processDefinitionId)
从接口 FormService 复制的描述
Retrieves a user defined reference to a start form. In the Explorer app, it is assumed that the form key specifies a resource in the deployment, which is the template for the form. But users are free to use this property differently.

指定者:
接口 FormService 中的 getStartFormKey

getTaskFormKey

public String getTaskFormKey(String processDefinitionId,
                             String taskDefinitionKey)
从接口 FormService 复制的描述
Retrieves a user defined reference to a task form. In the Explorer app, it is assumed that the form key specifies a resource in the deployment, which is the template for the form. But users are free to use this property differently. Both arguments can be obtained from Task instances returned by any TaskQuery.

指定者:
接口 FormService 中的 getTaskFormKey

saveFormData

public void saveFormData(String taskId,
                         Map<String,String> properties)
从接口 FormService 复制的描述
Save the data that was entered as properties in a task form.

指定者:
接口 FormService 中的 saveFormData


Copyright © 2013 Alfresco. All rights reserved.