Package org.uengine.processmanager

Examples of org.uengine.processmanager.ProcessDefinitionRemote


     
    return pd.getName().getText().replace(' ', '_') + "-" + y + (m<10?"0"+m:""+m) + (d<10?"0"+d:""+d) + (h<10?"0"+h:""+h) + (mi<10?"0"+mi:""+mi) + (s<10?"0"+s:""+s);
  }

  public static String createInstanceId(ProcessDefinition pd){
    return createInstanceId(new ProcessDefinitionRemote(pd, null));
  }
View Full Code Here


     *
     * @param request
   * @throws Exception
     */
    public void setInitializeProc(HttpServletRequest request) throws Exception {
      ProcessDefinitionRemote pdr = null;

    // useBean
    ProcessManagerFactoryBean processManagerFactory = new ProcessManagerFactoryBean();

    pm = processManagerFactory.getProcessManager();
View Full Code Here

    loggedRoleMapping.setMale(true);
    loggedRoleMapping.setBirthday(new java.util.Date());
  }
 
  public void setInitializeProc(HttpServletRequest request) throws Exception {
    ProcessDefinitionRemote pdr = null;

    // useBean
    ProcessManagerFactoryBean processManagerFactory = new ProcessManagerFactoryBean();

    pm = processManagerFactory.getProcessManager();
View Full Code Here

    public void setProcessVersionId(String processVersionId) {
        this.processVersionId = processVersionId;
    }

    public ProcessDefinitionRemote view(ProcessManagerRemote pm, DataMap reqMap, String lastInstanceId) throws Exception {
        ProcessDefinitionRemote pdr = null;
       
        try {
            /***********************************************************************/
            /*                            Define                                   */
            /***********************************************************************/
 
View Full Code Here

  private boolean validateSingleData(String alias) {
    ProcessManagerFactoryBean processManagerFactory = new ProcessManagerFactoryBean();
    ProcessManagerRemote pm = null;
    ProcessDefinitionRemote[] pds = null;
    ProcessDefinitionRemote pdr = null;
    boolean val = true;
    try {
      pm = processManagerFactory.getProcessManagerForReadOnly();
      pds = pm.listProcessDefinitionRemotesLight();
      for (int i = 0; i < pds.length; i++) {
        pdr = pds[i];
        if (pdr.getAlias() != null && pdr.getAlias().equals(alias)) {
          val = false;
          break;
        }
      }
    } catch (Exception e) {
View Full Code Here

  private boolean[] validateMultiData(String paras) {
    ProcessManagerFactoryBean processManagerFactory = new ProcessManagerFactoryBean();
    ProcessManagerRemote pm = null;
    ProcessDefinitionRemote[] pds = null;
    ProcessDefinitionRemote pdr = null;

    String[] aliass = new String[paras.split("\\|").length];
    int count=0;
    StringTokenizer st = new StringTokenizer(paras, "|");
    while (st.hasMoreElements()) {
      aliass[count] = st.nextToken();
      count++;
    }

    boolean[] val = new boolean[aliass.length];

    try {
      pm = processManagerFactory.getProcessManagerForReadOnly();
      pds = pm.listProcessDefinitionRemotesLight();
      for (int j = 0; j < aliass.length; j++) {
        for (int i = 0; i < pds.length; i++) {
          pdr = pds[i];
          if (pdr.getAlias() != null && pdr.getAlias().equals(aliass[j])) {
            val[j] = true;
            break;
          }
        }
      }
View Full Code Here

    if(options==null) options = new HashMap();
   
    if(defaultValue!=null && defaultValue instanceof FileContext){
      FileContext defaultFileContext = (FileContext)defaultValue;
     
      ProcessDefinitionRemote pdr = (ProcessDefinitionRemote)options.get("definitionRemote");
      ProcessVariable[] variables = pdr.getProcessVariableDescriptors();
      for(int i=0; i<variables.length; i++){
        if(variables[i].getName().equals(fd.getName()))
            defaultFileContext = (FileContext)variables[i].getDefaultValue();
      }
     
View Full Code Here

TOP

Related Classes of org.uengine.processmanager.ProcessDefinitionRemote

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.