Package org.activiti.workflow.simple.exception

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


    this.workflowDefinition = workflowDefinition;
  }
 
  public WorkflowDefinition endParallel() {
    if (workflowDefinition == null) {
      throw new SimpleWorkflowException("Can only call endParallel when inParallel was called on a workflow definition first");
    }
    return workflowDefinition;
  }
View Full Code Here


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

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

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

  }
 
  @Override
  public void setValues(StepDefinition otherDefinition) {
    if(!(otherDefinition instanceof FeedbackStepDefinition)) {
      throw new SimpleWorkflowException("An instance of FeedbackStepDefinition is required to set values");
    }
   
    FeedbackStepDefinition stepDefinition = (FeedbackStepDefinition) otherDefinition;
    setDescription(stepDefinition.getDescription());
    setDescriptionForFeedbackProviders(stepDefinition.getDescriptionForFeedbackProviders());
View Full Code Here

   * which was provided in the constructor.
   */
  public void convert() {
   
    if (workflowDefinition == null) {
      throw new SimpleWorkflowException("Cannot start conversion: need to set a WorkflowDefinition first!");
    }
   
    this.incrementalIdMapping = new HashMap<String, Integer>();
    this.additionalArtifacts = new HashMap<String, Object>();
   
View Full Code Here

    this.workflowDefinition = workflowDefinition;
  }
 
  public WorkflowDefinition endChoice() {
    if (workflowDefinition == null) {
      throw new SimpleWorkflowException("Can only call endChoice when inChoice was called on a workflow definition first");
    }
    return workflowDefinition;
  }
View Full Code Here

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

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

    return clone;
  }
 
  public void setValues(FormDefinition otherDefinition) {
    if(!(otherDefinition instanceof FormDefinition)) {
      throw new SimpleWorkflowException("An instance of FormDefinition is required to set values");
    }
   
    FormDefinition formDefinition = (FormDefinition) otherDefinition;
    setFormKey(formDefinition.getFormKey());
    setDescription(formDefinition.getDescription());
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.