Package org.activiti.workflow.simple.exception

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


    this.stepListContainer = stepListContainer;
  }
 
  public T endList() {
    if (stepListContainer == null) {
      throw new SimpleWorkflowException("Can only call endList when inList was called on a workflow definition first");
    }
   
    return (T) stepListContainer;
  }
View Full Code Here


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

  /**
   * @param e exception to wrap
   * @return an {@link SimpleWorkflowException} to throw, wrapping the given exception.
   */
  protected SimpleWorkflowException wrapExceptionRead(Exception e) {
    return new SimpleWorkflowException("Error while parsing JSON", e);
  }
View Full Code Here

  /**
   * @param e exception to wrap
   * @return an {@link SimpleWorkflowException} to throw, wrapping the given exception.
   */
  protected SimpleWorkflowException wrapExceptionWrite(Exception e) {
    return new SimpleWorkflowException("Error while writing JSON", e);
  }
View Full Code Here

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

    return this;
  }
 
  public T endList() {
    if (stepListContainer == null) {
      throw new SimpleWorkflowException("Can only call endList when inList was called on a workflow definition first");
    }
   
    return (T) stepListContainer;
  }
View Full Code Here

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

        this.formPropertyDefinitions = formPropertyDefinitions;
    }

    public FormPropertyGroup addFormPropertyDefinition(FormPropertyDefinition definition) {
        if (definition == null) {
            throw new SimpleWorkflowException("Definition to add cannot be null");
        }

        formPropertyDefinitions.add(definition);
        return this;
    }
View Full Code Here

        return clone;
    }

    public void setValues(FormPropertyGroup otherGroup) {
        if (!(otherGroup instanceof FormPropertyGroup)) {
            throw new SimpleWorkflowException("An instance of FormPropertyGroup is required to set values");
        }

        FormPropertyGroup formGroup = (FormPropertyGroup) otherGroup;
        setId(formGroup.getId());
        setTitle(formGroup.getTitle());
View Full Code Here

  }
 
  @Override
  public void setValues(FormPropertyDefinition otherDefinition) {
    if(!(otherDefinition instanceof BooleanPropertyDefinition)) {
      throw new SimpleWorkflowException("An instance of BooleanPropertyDefinition is required to set values");
    }
   
    BooleanPropertyDefinition datePropertyDefinition = (BooleanPropertyDefinition) otherDefinition;
    setName(datePropertyDefinition.getName());
    setMandatory(datePropertyDefinition.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.