Package org.uengine.kernel

Examples of org.uengine.kernel.RoleResolutionContext


          drrcInput = (InputterAdapter)ObjectType.getDefaultInputter(Class.forName(className));
        }catch(Exception e){
          drrcInput = new ObjectInput(classType);
        }
       
        RoleResolutionContext rrc = (RoleResolutionContext)Class.forName(className).newInstance();
        String roleResolutionContextName = rrc.getName();

        drrcInput.addActionListener(this);
     
        tabPanel.add(
          "Center",
View Full Code Here


      java.util.List list = (java.util.List)tr.getTransferData(listFlavor);
     
      Object objectGot = list.get(0);
     
      if(objectGot instanceof RoleResolutionContext){
        RoleResolutionContext context = (RoleResolutionContext)objectGot;
        System.out.println(context.toString());
       
        HumanActivity humanActivity = (HumanActivity)getActivity();
        Role role;
        if(humanActivity.getRole()!=null){
          role = humanActivity.getRole();
        } else {
          ProcessDefinition editingDefinition = humanActivity.getProcessDefinition();
          role = new Role();
          role.setName(getNewRoleName(editingDefinition.getRoles()));
          editingDefinition.addRole(role);
          ProcessDesigner.getInstance().getProcessDefinitionDesigner().refreshActivity();
        }
       
        if(UEngineUtil.isNotEmpty(context.getDisplayName())){
          String roleDisplayName = role.getDisplayName().getText();
          roleDisplayName = roleDisplayName.split(":")[0];
          role.setDisplayName(roleDisplayName + ":" + context.getDisplayName());
        }
         
        role.setRoleResolutionContext(context);
        role.setAskWhenInit(false);
       
View Full Code Here

TOP

Related Classes of org.uengine.kernel.RoleResolutionContext

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.