Package org.uengine.kernel

Examples of org.uengine.kernel.Role


      fd.setInputter(parameterInput);

      fd = getFieldDescriptor("Role");   
      fd.setInputter(new RoleInput(pd, RoleInput.WEBSERVICE_ONLY){
        public void onValueChanged(){
          Role role = (Role)getValue();
          ServiceDefinition svcdef = (ServiceDefinition)role.getServiceType();
          serviceDefinitionInputter.setValue(svcdef);
          portTypeInputter.setServiceDefinition(svcdef);         
        }
      });
View Full Code Here


    }
    return roleIndex;
  }
 
  private Role[] getAssignedRoles(Activity act) {
    Role role=null;
      Role[] roles=null;
      if (act instanceof HumanActivity) {
        role = ((HumanActivity) act).getRole();
        roles = new Role[1];
        roles[0] = new Role();
        roles[0] = role;
      } else if (act instanceof LocalMessengerActivity) {
        role = ((LocalMessengerActivity) act).getToRole();
        if(role instanceof CompositeRole){
          roles = ((CompositeRole) role).getRoles();
        } else if (role instanceof Role) {
          roles = new Role[1];
          roles[0] = new Role();
          roles[0] = role;
        }
      }
      return roles;
  }
View Full Code Here

      ProcessDefinition newPd = (ProcessDefinition)instance.getProcessDefinition().clone();
      HumanActivity humanActivity = (HumanActivity)newPd.getActivity(tracingTag);
     
      String newRoleName = "_delegateRole_" + humanActivity.getRole().getName() + "_" + humanActivity.getTracingTag();
     
      Role newRole = new Role();
      newRole.setName(newRoleName);
      humanActivity.setRole(newRole);
     
      newPd.registerToProcessDefinition(false, false)
      changeProcessDefinition(instanceId, newPd);
     
View Full Code Here

        disableAll(pl);
            disableAll(plOther);
            enableAll(roleExist);
           
            RoleExist roleExist = (RoleExist)cols.get(selectedColumn);
            Role existingRole = roleExist.getRole();
            if(existingRole==null && roleExist.getRoleName()!=null){
              existingRole = Role.forName(roleExist.getRoleName());
            }
           
            roleinput.setValue(existingRole);
View Full Code Here

      }else{//Null
        Evaluate eval = new Evaluate(pv, cond, null);
        ConditionTable.this.setValueAt(eval, selectedRow, selectedColumn);
      }
    }else{
      Role role = (Role)roleinput.getValue();
      Condition roleExist = new RoleExist(role);
     
      if(roleExistOrNotExist.getSelectedIndex()> 0){
        roleExist = new Not(roleExist);
      }
View Full Code Here

 
  public ProcessDefinition createProcessDefinition(){
    ProcessDefinition def = new ProcessDefinition();
   
    def.setRoles(new Role[]{
      new Role("referencer"),
      new Role("drafter"),
      new Role("approver")
    });
       
    ProcessVariable pv;{
      pv = new ProcessVariable();
      pv.setName("var1");
View Full Code Here

 
  public ProcessDefinition createProcessDefinition(){
    ProcessDefinition def = new ProcessDefinition();
   
    def.setRoles(new Role[]{
      new Role("referencer"),
      new Role("drafter"),
      new Role("approver")
    });
       
    ProcessVariable pv1;{
      pv1 = new ProcessVariable();
      pv1.setName("varString");
View Full Code Here

    restartBtn.setEnabled(false);

    final Type roleTable = new Type();{
      Role[] roles = procDef.getRoles();
      for(int i=0; i<roles.length; i++){
        Role role = roles[i];
        FieldDescriptor fd = new FieldDescriptor(role.getName(), role.getDisplayName().getText());
               
        roleTable.addFieldDescriptor(fd);
      }
    }   
    roleInputForm = new InputFormSubstance(roleTable);
View Full Code Here

 
  public ProcessDefinition createProcessDefinition(){
    ProcessDefinition def = new ProcessDefinition();
   
    def.setRoles(new Role[]{
      new Role("referencer"),
      new Role("drafter"),
      new Role("approver")
    });
       
    ProcessVariable pv1;{
      pv1 = new ProcessVariable();
      pv1.setName("varString");
View Full Code Here

            if(ali.isSource())
              g2.drawArc(relativeLinkPointFrom.x, relativeLinkPointFrom.y, 2, 2, 0, 0);
          }
        }
       
        Role roles[] = processDefinition.getRoles();
        if(roles !=null)
        for(int j=0; j<roles.length; j++){
          java.util.List links = arrowTargetSource.getArrowLinkingInfo(roles[j]);

          if(links!=null)
View Full Code Here

TOP

Related Classes of org.uengine.kernel.Role

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.