org.activiti.engine.FormService Java Examples

The following examples show how to use org.activiti.engine.FormService. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: InitProcessEngineBySpringAnnotation.java    From activiti-in-action-codes with Apache License 2.0 6 votes vote down vote up
public static void main(String[] args) {
    AnnotationConfigApplicationContext ctx =
            new AnnotationConfigApplicationContext();
    ctx.register(SpringAnnotationConfiguration.class);
    ctx.refresh();

    assertNotNull(ctx.getBean(ProcessEngine.class));
    assertNotNull(ctx.getBean(RuntimeService.class));
    TaskService bean = ctx.getBean(TaskService.class);
    assertNotNull(bean);
    assertNotNull(ctx.getBean(HistoryService.class));
    assertNotNull(ctx.getBean(RepositoryService.class));
    assertNotNull(ctx.getBean(ManagementService.class));
    assertNotNull(ctx.getBean(FormService.class));
    Task task = bean.newTask();
    task.setName("哈哈");
    bean.saveTask(task);
}
 
Example #2
Source File: ProxyProcessEngine.java    From lemon with Apache License 2.0 5 votes vote down vote up
public FormService getFormService() {
    if (processEngine == null) {
        return null;
    }

    return processEngine.getFormService();
}
 
Example #3
Source File: WorkspaceController.java    From lemon with Apache License 2.0 5 votes vote down vote up
/**
 * 完成任务页面
 * 
 * @return
 */
@RequestMapping("workspace-prepareCompleteTask")
public String prepareCompleteTask(@RequestParam("taskId") String taskId,
        Model model) {
    FormService formService = processEngine.getFormService();

    TaskFormData taskFormData = formService.getTaskFormData(taskId);

    model.addAttribute("taskFormData", taskFormData);

    return "bpm/workspace-prepareCompleteTask";
}
 
Example #4
Source File: WorkspaceController.java    From lemon with Apache License 2.0 5 votes vote down vote up
/**
 * 发起流程页面(启动一个流程实例)内置流程表单方式
 * 
 * @return
 */
@RequestMapping("workspace-prepareStartProcessInstance")
public String prepareStartProcessInstance(
        @RequestParam("processDefinitionId") String processDefinitionId,
        Model model) {
    FormService formService = processEngine.getFormService();
    StartFormData startFormData = formService
            .getStartFormData(processDefinitionId);
    model.addAttribute("startFormData", startFormData);

    return "bpm/workspace prepareStartProcessInstance";
}
 
Example #5
Source File: FormResourceRepository.java    From crnk-framework with Apache License 2.0 5 votes vote down vote up
public FormResourceRepository(FormService formService, TaskService taskService, ActivitiResourceMapper resourceMapper,
                              Class<F> formClass) {
    super(formClass);
    this.formService = formService;
    this.resourceMapper = resourceMapper;
    this.taskService = taskService;
}
 
Example #6
Source File: ActivitiTaskTypeManager.java    From alfresco-repository with GNU Lesser General Public License v3.0 4 votes vote down vote up
public ActivitiTaskTypeManager(WorkflowObjectFactory factory, FormService formService)
{
    this.factory = factory;
    this.formService = formService;
}
 
Example #7
Source File: ProcessCustomService.java    From maven-framework-project with MIT License 4 votes vote down vote up
public static FormService getFormService() {
	return formService;
}
 
Example #8
Source File: ProcessEngineImpl.java    From flowable-engine with Apache License 2.0 4 votes vote down vote up
@Override
public FormService getFormService() {
    return formService;
}
 
Example #9
Source File: ProcessEngineConfigurationImpl.java    From flowable-engine with Apache License 2.0 4 votes vote down vote up
public ProcessEngineConfigurationImpl setFormService(FormService formService) {
    this.formService = formService;
    return this;
}
 
Example #10
Source File: ProcessEngineConfigurationImpl.java    From flowable-engine with Apache License 2.0 4 votes vote down vote up
@Override
public FormService getFormService() {
    return formService;
}
 
Example #11
Source File: ActivitiUtil.java    From alfresco-repository with GNU Lesser General Public License v3.0 4 votes vote down vote up
/**
 * @return the formService
 */
public FormService getFormService()
{
    return formService;
}
 
Example #12
Source File: AbstractProcessEngineConfiguration.java    From activiti6-boot2 with Apache License 2.0 4 votes vote down vote up
public FormService formServiceBean(ProcessEngine processEngine) {
  return processEngine.getFormService();
}
 
Example #13
Source File: ActivitiRule.java    From activiti6-boot2 with Apache License 2.0 4 votes vote down vote up
public FormService getFormService() {
	return formService;
}
 
Example #14
Source File: ActivitiEngineConfiguration.java    From activiti6-boot2 with Apache License 2.0 4 votes vote down vote up
@Bean
public FormService formService() {
  return processEngine().getFormService();
}
 
Example #15
Source File: ActivitiEngineConfiguration.java    From activiti6-boot2 with Apache License 2.0 4 votes vote down vote up
@Bean
public FormService formService() {
  return processEngine().getFormService();
}
 
Example #16
Source File: JPAActivitiEngineConfiguration.java    From activiti6-boot2 with Apache License 2.0 4 votes vote down vote up
@Bean
public FormService formService() {
  return processEngine().getFormService();
}
 
Example #17
Source File: ActivitiServices.java    From activiti6-boot2 with Apache License 2.0 4 votes vote down vote up
@Produces
@Named
@ApplicationScoped
public FormService formService() {
  return processEngine().getFormService();
}
 
Example #18
Source File: ActivitiRule.java    From activiti6-boot2 with Apache License 2.0 4 votes vote down vote up
public FormService getFormService() {
  return formService;
}
 
Example #19
Source File: ProcessEngineImpl.java    From activiti6-boot2 with Apache License 2.0 4 votes vote down vote up
public org.activiti.form.api.FormService getFormEngineFormService() {
  return formEngineFormService;
}
 
Example #20
Source File: ProcessEngineImpl.java    From activiti6-boot2 with Apache License 2.0 4 votes vote down vote up
public FormService getFormService() {
  return formService;
}
 
Example #21
Source File: AbstractProcessEngineAutoConfiguration.java    From activiti6-boot2 with Apache License 2.0 4 votes vote down vote up
@Bean
@ConditionalOnMissingBean
public org.activiti.form.api.FormService formEngineFormService(ProcessEngine processEngine) {
  return processEngine.getFormEngineFormService();
}
 
Example #22
Source File: AbstractProcessEngineAutoConfiguration.java    From activiti6-boot2 with Apache License 2.0 4 votes vote down vote up
@Bean
@ConditionalOnMissingBean
@Override
public FormService formServiceBean(ProcessEngine processEngine) {
  return super.formServiceBean(processEngine);
}