Examples of RoleMapping


Examples of org.uengine.kernel.RoleMapping

  public String completeWorkitem(String endpoint, String instanceId, String taskId, String tracingTag, HashMap processVariableMap, ProcessManagerRemote pm) {

    String workedTaskId = null;
   
    try {
      RoleMapping loggedRoleMapping = RoleMapping.create();
      loggedRoleMapping.setEndpoint(endpoint);

      Map genericContext = new HashMap();
      genericContext.put(HumanActivity.GENERICCONTEXT_CURR_LOGGED_ROLEMAPPING, loggedRoleMapping);

      ProcessInstance instance = pm.getProcessInstance(instanceId);
View Full Code Here

Examples of org.uengine.kernel.RoleMapping

  public String startProcess(String type, String alias, String initiator, HashMap processVariableMap, ProcessManagerRemote pm) {
   
    String instanceId = null;
   
    try {
      RoleMapping loggedRoleMapping = RoleMapping.create();
      loggedRoleMapping.setEndpoint(initiator);

      Map genericContext = new HashMap();
      genericContext.put(HumanActivity.GENERICCONTEXT_CURR_LOGGED_ROLEMAPPING, loggedRoleMapping);

      pm.setGenericContext(genericContext);
View Full Code Here

Examples of org.uengine.kernel.RoleMapping

  public String workItemAccept(String instanceId, String tracingTag, String endPoint, ProcessManagerRemote pm) {
    String workItemAcceptedEndpoint = null;
   
    try {
      RoleMapping rm = RoleMapping.create();
      rm.setEndpoint(endPoint);

      String[] taskIds = pm.delegateWorkitem(instanceId, tracingTag, rm);

      workItemAcceptedEndpoint = endPoint;
    } catch (Exception e) {
View Full Code Here

Examples of org.uengine.kernel.RoleMapping

          tx.begin();

        String processDefinition = telnetMessage.getProcessDefinition();
        String endpoint = telnetMessage.getEndpoint();
       
        RoleMapping loggedRoleMapping = RoleMapping.create();
        loggedRoleMapping.setEndpoint(endpoint);

//        ActivityReference initiatorHumanActivityReference = pm.getInitiatorHumanActivityReference(processDefinition);
//        String initiatorDefVerId = initiatorHumanActivityReference.getActivity().getProcessDefinition().getId();
        String fantomInstanceId = pm.initialize(processDefinition, null, loggedRoleMapping);
       
View Full Code Here

Examples of org.uengine.kernel.RoleMapping

     
      for (int i = 0; i < values.length; i++) {
        String beanValueId="";
        String beanValueName="";
        if(values[i] instanceof RoleMapping){
          RoleMapping rm = (RoleMapping)values[i];
          beanValueId = rm.getEndpoint();
          beanValueName = rm.getResourceName();
        }
       
       
       
        if (getViewmode() == InputConstants.VIEW || getViewmode() == InputConstants.PRINT) {
View Full Code Here

Examples of org.uengine.kernel.RoleMapping

    if (forEach != null) {
      int index = forEach.getCurrentIndex();

      //case of indexed by rolemapping
      if (multiValue[0] instanceof RoleMapping) {
        RoleMapping roleMapping = (RoleMapping)multiValue[0];
        if(roleMapping.size() <= index)
          index = roleMapping.size()-1;
       
        roleMapping.setCursor(index);
       
        multiValue = new Object[]{roleMapping.getCurrentRoleMapping()};
      } else if (multiValue[0] instanceof ProcessVariableValue) {
        ProcessVariableValue processVariableValue = (ProcessVariableValue)multiValue[0];
        if(processVariableValue.size() <= index)
          index = processVariableValue.size()-1;
       
View Full Code Here

Examples of org.uengine.kernel.RoleMapping

  public void putRoleMapping(String instanceId, String roleName, String endpoint) throws RemoteException{
    logInst("putRoleMapping", new Object[]{instanceId, roleName, endpoint});
    try{
      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

Examples of org.uengine.kernel.RoleMapping

    logInst("getRoleMapping", new Object[]{instanceId, roleName});
    try{
      ProcessInstance instance = getInstance(instanceId);
      ProcessDefinition definition = instance.getProcessDefinition();

      RoleMapping roleMapping = definition.getRole(roleName).getMapping(instance);
     
      if(roleMapping==null) return null;
     
      return roleMapping.getEndpoint();     
    }catch(Exception e){
      e.printStackTrace();
      throw new RemoteException("ProcessManagerError:"+e.getMessage(), e);
    }
  } 
View Full Code Here

Examples of org.uengine.kernel.RoleMapping

    logInst("getRoleMappingObject", new Object[]{instanceId, roleName});
    try{
      ProcessInstance instance = getInstance(instanceId);
      ProcessDefinition definition = instance.getProcessDefinition();
     
      RoleMapping roleMapping = definition.getRole(roleName).getMapping(instance);
      if(roleMapping==null) return null;
     
      return roleMapping;
    }catch(Exception e){
      e.printStackTrace();
View Full Code Here

Examples of org.uengine.kernel.RoleMapping

    return initializeProcessIfRequired(processDefinition, instanceId);
  }

  public void delegateRoleMapping(String instanceId, String roleName, String endpoint) throws RemoteException {
    putRoleMapping(instanceId, roleName, endpoint);
    RoleMapping roleMapping = getRoleMappingObject(instanceId, roleName);
    delegateForRoleMapping(instanceId, roleMapping);
  }
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.