Package org.uengine.kernel

Examples of org.uengine.kernel.RevisionInfo


        def.setName(saveDialogInfo.getName());
        def.setAlias(saveDialogInfo.getAlias());
        def.setVersion(saveDialogInfo.getVersion());
        saveDialogInfo.getAuthor().setVersion(saveDialogInfo.getVersion());
       
        RevisionInfo revInfo = saveDialogInfo.getAuthor();
        def.addRevisionInfo(revInfo);
        setRevisionInfo((RevisionInfo)revInfo.clone());
       
        ByteArrayOutputStream bao = new ByteArrayOutputStream();
        se.serialize(def, bao, null);
 
 
View Full Code Here


  public void beforeDeploy(ProcessDefinition definition, ProcessTransactionContext tc, String folder, boolean isNew) throws Exception {
   
    ProcessDefinitionDAO procDef = (ProcessDefinitionDAO) tc.findSynchronizedDAO("bpm_procdef", "defid", definition.getBelongingDefinitionId(), ProcessDefinitionDAO.class);
   
    if (isNew) {
      RevisionInfo ri = (RevisionInfo) definition.getRevisionInfoList().get(0);
      AclManager acl = AclManager.getInstance();
     
      acl.setPermission(
          Integer.parseInt(definition.getBelongingDefinitionId()),
          AclManager.ACL_FIELD_EMP, ri.getAuthorId(),
          new String[]{AclManager.PERMISSION_MANAGEMENT + ""}
      );
     
      if (UEngineUtil.isNotEmpty(ri.getAuthorCompany())) {
        acl.setPermission(
            Integer.parseInt(definition.getBelongingDefinitionId()),
            AclManager.ACL_FIELD_COM, ri.getAuthorCompany(),
            new String[]{AclManager.PERMISSION_INITIATE + "", AclManager.PERMISSION_VIEW + ""}
        );
        procDef.setComCode(ri.getAuthorCompany());
      }
    } else {
      procDef.setName(definition.getName().getText());
      procDef.setDescription(definition.getDescription().getText());
    }
View Full Code Here

TOP

Related Classes of org.uengine.kernel.RevisionInfo

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.