Package com.founder.fix.fixflow.core.exception

Examples of com.founder.fix.fixflow.core.exception.FixFlowException


    return this;
  }

  public ProcessDefinitionQueryImpl processDefinitionVersion(Integer version) {
    if (version == null) {
      throw new FixFlowException("version is null");
    } else if (version <= 0) {
      throw new FixFlowException("version must be positive");
    }
    this.version = version;
    return this;
  }
View Full Code Here


  }

  public void checkQueryOk() {
    super.checkQueryOk();
    if (latest && ((id != null) || (name != null) || (nameLike != null) || (version != null) || (deploymentId != null))) {
      throw new FixFlowException("Calling latest() can only be used in combination with key(String) and keyLike(String)");
    }
  }
View Full Code Here

    SqlCommand sqlCommand=new SqlCommand(Context.getDbConnection());

    String Fix_BizName=StringUtil.getString(Context.getAbstractScriptLanguageMgmt().execute("${Fix_BizName}", executionContext));
    String Fix_BizKeyFile=StringUtil.getString(Context.getAbstractScriptLanguageMgmt().execute("${Fix_BizKeyFile}", executionContext));
    if(Fix_BizName==null||Fix_BizName.equals("")){
      throw new FixFlowException("数据变量${Fix_BizName}为空");
    }
    if(Fix_BizKeyFile==null||Fix_BizKeyFile.equals("")){
      throw new FixFlowException("数据变量${Fix_BizKeyFile}为空");
    }
   
   
   
    String sqlText="UPDATE "+Fix_BizName+" SET  FIX_PROCESSSTATE='"+statusValue+"' WHERE "+Fix_BizKeyFile+"='"+executionContext.getBizKey()+"'";
View Full Code Here

        startProcessInstanceCommand.setProcessDefinitionKey(processDefinitionKey);
      } else {
        startProcessInstanceCommand.setProcessDefinitionId(processDefinitionId);
      }
    } else {
      throw new FixFlowException("processDefinitionKey和processDefinitionId不能都为空!");
    }
   
    //startProcessInstanceCommand.setBusinessKey(businessKey);
    startProcessInstanceCommand.setStartAuthor(Authentication.getAdminId());
View Full Code Here

    }
  }

  public ProcessDefinitionBehavior findDeployedProcessDefinitionById(String processDefinitionId) {
    if (processDefinitionId == null) {
      throw new FixFlowException("Invalid process definition id : null");
    }
    ProcessDefinitionBehavior processDefinition = (ProcessDefinitionBehavior) Context
      .getCommandContext()
      .getProcessDefinitionManager()
      .findLatestProcessDefinitionById(processDefinitionId);
    if(processDefinition == null) {
      throw new FixFlowException("no deployed process definition found with id '" + processDefinitionId + "'");
    }
    processDefinition = resolveProcessDefinition(processDefinition);
    return processDefinition;
  }
View Full Code Here

    ProcessDefinitionBehavior processDefinition = (ProcessDefinitionBehavior) Context
      .getCommandContext()
      .getProcessDefinitionManager()
      .findLatestProcessDefinitionByKey(processDefinitionKey);
    if (processDefinition==null) {
      throw new FixFlowException("no processes deployed with key '"+processDefinitionKey+"'");
    }
    processDefinition = resolveProcessDefinition(processDefinition);
    return processDefinition;
  }
View Full Code Here

      deployment.setNew(false);
      deploy(deployment);
      processDefinition = processDefinitionCache.get(processDefinitionId);
     
      if (processDefinition==null) {
        throw new FixFlowException("deploying "+deploymentId+" didn't put process definition "+processDefinitionId+" in the cache");
      }
    }
    return processDefinition;
  }
View Full Code Here

  public static Object instantiate(String className) {
    try {
      Class< ? > clazz = loadClass(className);
      return clazz.newInstance();
    } catch (Exception e) {
      throw new FixFlowException("couldn't instantiate class "+className, e);
    }
  }
View Full Code Here

      Class<? extends Object> clazz = target.getClass();
      Method method = findMethod(clazz, methodName, args);
      method.setAccessible(true);
      return method.invoke(target, args);
    } catch (Exception e) {
      throw new FixFlowException("couldn't invoke "+methodName+" on "+target, e);
    }
  }
View Full Code Here

  public static Field getField(String fieldName, Class<?> clazz) {
    Field field = null;
    try {
      field = clazz.getDeclaredField(fieldName);
    } catch (SecurityException e) {
      throw new FixFlowException("not allowed to access field " + field + " on class " + clazz.getCanonicalName());
    } catch (NoSuchFieldException e) {
      // for some reason getDeclaredFields doesnt search superclasses
      // (which getFields() does ... but that gives only public fields)
      Class<?> superClass = clazz.getSuperclass();
      if (superClass != null) {
View Full Code Here

TOP

Related Classes of com.founder.fix.fixflow.core.exception.FixFlowException

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.