Package org.uengine.kernel

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


      ProcessInstance instance = getInstance(instanceId);
     
      RoleMapping roleMap = RoleMapping.create();
      roleMap.setName(roleName);
      roleMap.setEndpoint(endpoint);
      roleMap.fill(instance);
     
      instance.putRoleMapping(roleMap);
    }catch(Exception e){
      e.printStackTrace();
      throw new RemoteException("ProcessManagerError:"+e.getMessage(), e);
View Full Code Here


     
      if(result instanceof RoleMapping){
        RoleMapping rm = (RoleMapping)result;
        try {
          rm.beforeFirst();
          rm.fill(instance);
          String endpoint = rm.getEndpoint();
          result = rm;
        } catch (Exception e) {
          e.printStackTrace();
        }
View Full Code Here

      try {
        result = getter.invoke(result, new Object[]{});
        if(result == null && isRoleMappingClass){
          RoleMapping rm = (RoleMapping)tempRole;
          rm.beforeFirst();
          rm.fill(instance);
          result = getter.invoke(rm, new Object[]{});
        }
       
        return result;
      } catch (ClassCastException cce) {
View Full Code Here

    }

     String nateOnId = roleMapping.getExtendedProperty(EXT_PROP_KEY_NateOnMessengerId);
   
    if (nateOnId == null) {
      roleMapping.fill(instance);
      nateOnId = roleMapping.getExtendedProperty(EXT_PROP_KEY_NateOnMessengerId);
    }
     
    if (nateOnId == null) {
      nateOnId = roleMapping.getEmailAddress();
View Full Code Here

    if(instance instanceof SimulatorProcessInstance ||activity.STATUS_SKIPPED.equals(activity.getStatus(instance))) return;

    if(activity instanceof HumanActivity){
      try{
        RoleMapping rm = ((HumanActivity)activity).getRole().getMapping(instance);
        rm.fill(instance);
        if(rm == null) return;
        if(
            instance.isNew()
            && instance.getProcessDefinition().getInitiatorHumanActivityReference(instance.getProcessTransactionContext()).getActivity().equals(activity)
        ){ 
View Full Code Here

      options.put("prefferedActivityIconHeight", "25");
      HumanActivity humanActivity = (HumanActivity)activity;
      try {
        RoleMapping roleMapping = humanActivity.getRole().getMapping(instance);
        if(roleMapping!=null){
          if(roleMapping.getUserPortrait()==null) roleMapping.fill(instance);
          if(roleMapping.getUserPortrait()!=null)
            return roleMapping.getUserPortrait();
        }
      } catch (Exception e) {
      }
View Full Code Here

          ResourceDimensionDAOType resourceDimensionDAOType = ResourceDimensionDAOType.getInstance(tc);
 
          if(resourceDimensionDAOType.existAnyResourceWhereRsrc_Id(theMapping.getEndpoint())) continue;
         
          if(theMapping.getGroupName()==null)
            theMapping.fill(instance);
 
          ResourceDimensionDAO resourceDimension = resourceDimensionDAOType.createDAOForInsert();{
            resourceDimension.setRsrc_Id(theMapping.getEndpoint());
            resourceDimension.setRsrc_Name(theMapping.getResourceName());
            resourceDimension.setGender(theMapping.isMale());
View Full Code Here

 
  @SuppressWarnings({ "unchecked", "rawtypes" })
  public String processStart(ProcessStartMsg psMsg) throws Exception {
    RoleMapping loggedRoleMapping = RoleMapping.create();
    loggedRoleMapping.setEndpoint(psMsg.getInitiator());
    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

   
    HumanActivity hm = (HumanActivity) pm.getProcessInstance(acMsg.getInstanceId()).getProcessDefinition().getActivity(acMsg.getTracingTag());
    RoleMapping roleMapping = RoleMapping.create();
    roleMapping.setEndpoint(acMsg.getEndpoint());
    roleMapping.setName(hm.getRole().getName());
    roleMapping.fill(instance);
//    pm.putRoleMapping(acMsg.getInstanceId(), roleMapping);
//    pm.delegateRoleMapping(acMsg.getInstanceId(), roleMapping);
   
    pm.setGenericContext(genericContext);
    pm.completeWorkitem(acMsg.getInstanceId(), acMsg.getTracingTag(), acMsg.getTaskId(), new org.uengine.kernel.ResultPayload());
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.