Package org.activiti.workflow.simple.alfresco.model.config

Examples of org.activiti.workflow.simple.alfresco.model.config.Configuration


    // Update task-key on the task itself
    userTask.setFormKey(type.getName());
   
    // Create a form-config for the task
    Module shareModule = AlfrescoConversionUtil.getExtension(conversion).getModules().get(0);
    Configuration configuration = shareModule.addConfiguration(AlfrescoConversionConstants.EVALUATOR_TASK_TYPE
        , type.getName());
    Form formConfig = configuration.createForm();
   
    // Populate model and form based on FormDefinition
    formCreator.createForm(type, formConfig, humanStep.getForm(), conversion);
   
    // Set up property sharing using task-listeners
View Full Code Here


      if(flowElement instanceof StartEvent) {
        StartEvent startEvent = (StartEvent) flowElement;
        if(startEvent.getFormKey() == null) {
         
          Module module = AlfrescoConversionUtil.getExtension(conversion).getModules().get(0);
          Configuration detailsForm = module.addConfiguration(EVALUATOR_STRING_COMPARE,
              MessageFormat.format(EVALUATOR_CONDITION_ACTIVITI, conversion.getProcess().getId()));
         
          // No form-key is set, either use the default or generate of start-form if this
          // is available
          if(conversion.getWorkflowDefinition().getStartFormDefinition() != null
              && !conversion.getWorkflowDefinition().getStartFormDefinition().getFormGroups().isEmpty()) {
           
            // Create the content model for the start-task
            M2Type type = new M2Type();
         
            model.getTypes().add(type);
            type.setName(AlfrescoConversionUtil.getQualifiedName(modelNamespace.getPrefix(),
                AlfrescoConversionConstants.START_TASK_SIMPLE_NAME));
            type.setParentName(AlfrescoConversionConstants.DEFAULT_START_FORM_TYPE);
           
            // Create a form-config for the start-task
            Module shareModule = AlfrescoConversionUtil.getExtension(conversion).getModules().get(0);
            Configuration configuration = shareModule.addConfiguration(AlfrescoConversionConstants.EVALUATOR_TASK_TYPE
                , type.getName());
            Form formConfig = configuration.createForm();
            formConfig.setStartForm(true);
           
            // Populate model and form based on FormDefinition
            formCreator.createForm(type, formConfig, conversion.getWorkflowDefinition().getStartFormDefinition(), conversion);
           
View Full Code Here

    // Check presence of form-config and default workflow-details
    Module module = AlfrescoConversionUtil.getExtension(conversion).getModules().get(0);
    assertNotNull(module);
    assertEquals(1L, module.getConfigurations().size());
   
    Configuration config = module.getConfigurations().get(0);
    assertEquals(1L, config.getForms().size());
    assertEquals("activiti$workflowdefinition", config.getCondition());
    assertEquals(AlfrescoConversionConstants.EVALUATOR_STRING_COMPARE, config.getEvaluator());
  }
View Full Code Here

TOP

Related Classes of org.activiti.workflow.simple.alfresco.model.config.Configuration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.