Package org.uengine.kernel

Examples of org.uengine.kernel.RoleMapping.fill()


  @SuppressWarnings({ "unchecked", "rawtypes" })
  public void approvalDraftActivityComplete(ApprovalDraftActivityCompleteMsg adacMsg) throws Exception {
   
    RoleMapping loggedRoleMapping = RoleMapping.create();
    loggedRoleMapping.setEndpoint(adacMsg.getEndpoint());
    loggedRoleMapping.fill(null);
   
    Map genericContext = new HashMap();
    genericContext.put(HumanActivity.GENERICCONTEXT_CURR_LOGGED_ROLEMAPPING, loggedRoleMapping);
    genericContext.put("request", request);
    pm.setGenericContext(genericContext);
View Full Code Here


      childAct.setRole(null);
      childAct.setApprovalTypeByString(approver.getType());
     
      RoleMapping rm = RoleMapping.create();
      rm.setEndpoint(approver.getEmpCode());
      rm.fill(instance);
     
      // 결재 -> 합의
      if (!ExternalApprovalActivity.APPROVAL_TYPE_COOPERATION.equals(preApprovalType) && ExternalApprovalActivity.APPROVAL_TYPE_COOPERATION.equals(approver.getType())) {
        AllActivity allAct = new AllActivity();
        allAct.setTracingTag(null);
View Full Code Here

 
  @SuppressWarnings({ "unchecked", "rawtypes" })
  public void approvalActivityComplete(ApprovalActivityCompleteMsg aacMsg) throws Exception {
    RoleMapping loggedRoleMapping = RoleMapping.create();
    loggedRoleMapping.setEndpoint(aacMsg.getEndpoint());
    loggedRoleMapping.fill(null);
   
    Map genericContext = new HashMap();
    genericContext.put(HumanActivity.GENERICCONTEXT_CURR_LOGGED_ROLEMAPPING, loggedRoleMapping);
    genericContext.put("request", request);
    pm.setGenericContext(genericContext);
View Full Code Here

        childAct.setRole(null);
        childAct.setApprovalTypeByString(approver.getType());
       
        RoleMapping rm = RoleMapping.create();
        rm.setEndpoint(approver.getEmpCode());
        rm.fill(instance);
       
        // 결재 -> 합의
        if (!ExternalApprovalActivity.APPROVAL_TYPE_COOPERATION.equals(preApprovalType) && ExternalApprovalActivity.APPROVAL_TYPE_COOPERATION.equals(approver.getType())) {
          AllActivity allAct = new AllActivity();
          allAct.setTracingTag(null);
View Full Code Here

   
    RoleMapping rm = RoleMapping.create();
    if (dwMsg.getEndpoints().size() > 0) {
      for (String endpoint : dwMsg.getEndpoints()) {
        rm.setEndpoint(endpoint);
        rm.fill(instance);
        rm.moveToAdd();
      }
      rm.beforeFirst();
     
      pm.delegateWorkitem(dwMsg.getInstanceId(), dwMsg.getTracingTag(), rm);
View Full Code Here

    for (Role role : roles) {
      RoleMapping roleMapping = RoleMapping.create();
      roleMapping.setName(role.getName());
      for (String endpoint : role.getEndpoints()) {
        roleMapping.setEndpoint(endpoint);
        roleMapping.fill(instance);
        roleMapping.moveToAdd();
      }
      roleMapping.beforeFirst();

      pm.putRoleMapping(instanceId, roleMapping);
View Full Code Here

    {
      while(roleUser.next()){
        String endpoint = roleUser.getString("empCode");
       
        rm.setEndpoint(endpoint);
        rm.fill(instance);
        rm.moveToAdd();
      }
    }
   
    return rm;
View Full Code Here

   
  }
 
  public static void main(String args[]) throws Exception{
    RoleMapping rm = new DefaultCompanyRoleMapping();
    rm.fill(null);
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.