Examples of AlfrescoSimpleWorkflowException


Examples of org.activiti.workflow.simple.alfresco.conversion.exception.AlfrescoSimpleWorkflowException

        // Convert all properties
        AlfrescoFormPropertyConverter converter = null;
        for(FormPropertyDefinition property : group.getFormPropertyDefinitions()) {
          converter = propertyConverters.get(property.getClass());
          if(converter == null) {
            throw new AlfrescoSimpleWorkflowException("Unsupported property type: " + property.getClass().getName());
          }
          converter.convertProperty(contentType, formSet.getId(), formConfig, property, conversion);
        }
      }
     
View Full Code Here

Examples of org.activiti.workflow.simple.alfresco.conversion.exception.AlfrescoSimpleWorkflowException

  }

  protected void addFieldReference(Form form, String formSet, ReferencePropertyDefinition definition,
      M2Type contentType, WorkflowDefinitionConversion conversion) {
    if (form.isStartForm()) {
      throw new AlfrescoSimpleWorkflowException("Field references cannot be used on start-forms");
    }

    // Check if model contains an aspect for the property
    String propertyName = getPropertyName(definition, conversion);
View Full Code Here

Examples of org.activiti.workflow.simple.alfresco.conversion.exception.AlfrescoSimpleWorkflowException

   * @param assignmentType type of assignment this review-task has. Can be either {@link HumanStepAssignmentType#USER}
   * or {@link HumanStepAssignmentType#USERS}.
   */
  public void setAssignmentType(HumanStepAssignmentType assignmentType) {
    if(assignmentType != HumanStepAssignmentType.USER && assignmentType != HumanStepAssignmentType.USERS) {
      throw new AlfrescoSimpleWorkflowException("Review step can only be assigned to a single user or multiple users.");
    }
    this.assignmentType = assignmentType;
  }
View Full Code Here

Examples of org.activiti.workflow.simple.alfresco.conversion.exception.AlfrescoSimpleWorkflowException

    try {
      modelJaxbContext = JAXBContext.newInstance(M2Model.class);
      moduleJaxbContext = JAXBContext.newInstance(Extension.class, Module.class, AlfrescoConfiguration.class, ModuleDeployment.class);
      beansJaxbContext = JAXBContext.newInstance(Beans.class);
    } catch (JAXBException jaxbe) {
      throw new AlfrescoSimpleWorkflowException("Error while building JAXB-context for exporting content-model", jaxbe);
    }
  }
View Full Code Here

Examples of org.activiti.workflow.simple.alfresco.conversion.exception.AlfrescoSimpleWorkflowException

        FileOutputStream shareContextStream = new FileOutputStream(shareContextFile);
        writeShareCustomConfigBean(shareContextStream, processId, shareConfigFile.getName());
        shareContextStream.close();
       
      } catch (IOException ioe) {
        throw new AlfrescoSimpleWorkflowException("Error while exporting artifacts", ioe);
      }
  }
View Full Code Here

Examples of org.activiti.workflow.simple.alfresco.conversion.exception.AlfrescoSimpleWorkflowException

    }
  }
 
  protected void validateArtifactTargets(File repositoryFolder, File shareFolder) {
    if(repositoryFolder == null || shareFolder == null) {
      throw new AlfrescoSimpleWorkflowException("Both repositoryFolder and shareFolder are required.");
    }
    if(!repositoryFolder.exists()) {
      throw new AlfrescoSimpleWorkflowException("The repository target folder does not exist: " + repositoryFolder.getAbsolutePath());
    }
    if(!shareFolder.exists()) {
      throw new AlfrescoSimpleWorkflowException("The share target folder does not exist: " + shareFolder.getAbsolutePath());
    }
  }
View Full Code Here

Examples of org.activiti.workflow.simple.alfresco.conversion.exception.AlfrescoSimpleWorkflowException

 

  protected void validate(HumanStepDefinition stepDefinition) {
    if(stepDefinition.getId() == null) {
      if(stepDefinition.getName() == null && !stepDefinition.getName().isEmpty()) {
        throw new AlfrescoSimpleWorkflowException("Name or id of a human step is required.");
      }
      stepDefinition.setId(AlfrescoConversionUtil.getValidIdString(stepDefinition.getName()));
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.