Package org.activiti.workflow.simple.exception

Examples of org.activiti.workflow.simple.exception.SimpleWorkflowException


  }
 
  @Override
  public void setValues(FormPropertyDefinition otherDefinition) {
    if(!(otherDefinition instanceof ReferencePropertyDefinition)) {
      throw new SimpleWorkflowException("An instance of ReferencePropertyDefinition is required to set values");
    }
   
    ReferencePropertyDefinition referenceDefinition = (ReferencePropertyDefinition) otherDefinition;
    setName(referenceDefinition.getName());
    setMandatory(referenceDefinition.isMandatory());
View Full Code Here


  }
 
  @Override
  public void setValues(StepDefinition otherDefinition) {
    if(!(otherDefinition instanceof ScriptStepDefinition)) {
      throw new SimpleWorkflowException("An instance of ScriptStepDefinition is required to set values");
    }
   
    ScriptStepDefinition stepDefinition = (ScriptStepDefinition) otherDefinition;
    setId(stepDefinition.getId());
    setName(stepDefinition.getName());
View Full Code Here

  }
 
  @Override
  public void setValues(StepDefinition otherDefinition) {
    if(!(otherDefinition instanceof HumanStepDefinition)) {
      throw new SimpleWorkflowException("An instance of HumanStepDefinition is required to set values");
    }
   
    HumanStepDefinition stepDefinition = (HumanStepDefinition) otherDefinition;
    setAssignee(stepDefinition.getAssignee());
    if (stepDefinition.getCandidateGroups() != null && !stepDefinition.getCandidateGroups().isEmpty()) {
View Full Code Here

 

  @Override
  public void setValues(StepDefinition otherDefinition) {
    if(!(otherDefinition instanceof DelayStepDefinition)) {
      throw new SimpleWorkflowException("An instance of DelayStepDefinition is required to set values");
    }
   
    DelayStepDefinition delayDefinition = (DelayStepDefinition) otherDefinition;
    setId(delayDefinition.getId());
    setName(delayDefinition.getName());
View Full Code Here

    for(int i=elements.size() -1; i >= 0; i--) {
      if(elements.get(i) instanceof UserTask) {
        return (UserTask) elements.get(i);
      }
    }
    throw new SimpleWorkflowException("No usertask found in conversion");
  }
View Full Code Here

        }
      }
     
      if(!valid && !propertyName.startsWith(AlfrescoConversionConstants.WORKFLOW_NAMESPACE.getPrefix()) &&
        !propertyName.startsWith(AlfrescoConversionConstants.BPM_NAMESPACE.getPrefix())) {
        throw new SimpleWorkflowException("Property reference: " + this.getPlaceholder() + " references a property for a namespace that is not imported in the BPM-model");
      } else {
        valid = true;
      }
    }
   
    if(!valid && !model.isContainedInModel(getQualifiedName(namespacePrefix))) {
      throw new SimpleWorkflowException("Property reference: " + this.getPlaceholder() + " does not reference an existing property.");
    }
  }
View Full Code Here

  }

  @Override
  public void setValues(StepDefinition stepDefinition) {
    if(!(stepDefinition instanceof AlfrescoReviewStepDefinition)) {
        throw new SimpleWorkflowException("An instance of AlfrescoReviewStepDefinition is required to set values");
    }
   
    AlfrescoReviewStepDefinition reviewStepDefinition = (AlfrescoReviewStepDefinition) stepDefinition;
    setName(reviewStepDefinition.getName());
    setId(reviewStepDefinition.getId());
View Full Code Here

  }

  @Override
  public void setValues(StepDefinition otherDefinition) {
    if (!(otherDefinition instanceof AlfrescoEndProcessStepDefinition)) {
      throw new SimpleWorkflowException("An instance of AlfrescoEndProcessStep is required to set values");
    }
   
    AlfrescoEndProcessStepDefinition def = (AlfrescoEndProcessStepDefinition) otherDefinition;
   
    setName(def.getName());
View Full Code Here

  }

  @Override
  public void setValues(StepDefinition otherDefinition) {
    if(!(otherDefinition instanceof AlfrescoEmailStepDefinition)) {
      throw new SimpleWorkflowException("An instance of AlfrescoEmailStepDefinition is required to set values");
    }
    AlfrescoEmailStepDefinition other = (AlfrescoEmailStepDefinition) otherDefinition;
   
    setBody(other.getBody());
    setCc(other.getCc());
View Full Code Here

  }
 
  @Override
  public void setValues(FormPropertyDefinition otherDefinition) {
    if(!(otherDefinition instanceof AlfrescoTransitionsPropertyDefinition)) {
      throw new SimpleWorkflowException("An instance of AlfrescoTransitionProperty is required to set values");
    }
   
    AlfrescoTransitionsPropertyDefinition propDef = (AlfrescoTransitionsPropertyDefinition) otherDefinition;
    setName(propDef.getName());
    setMandatory(propDef.isMandatory());
View Full Code Here

TOP

Related Classes of org.activiti.workflow.simple.exception.SimpleWorkflowException

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.