Examples of Participant


Examples of org.criticalfailure.torchlight.core.model.model.Participant

    public Object[] getChildren(Object o) {
       
        logger.debug("get children: " + o);
       
        if(o instanceof Participant) {
            Participant p = (Participant)o;
           
            // TODO
        }
       
        return new Object[0];
View Full Code Here

Examples of org.eclipse.bpmn2.Participant

            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case Bpmn2Package.PARTICIPANT: {
            Participant participant = (Participant) theEObject;
            T result = caseParticipant(participant);
            if (result == null)
                result = caseBaseElement(participant);
            if (result == null)
                result = caseInteractionNode(participant);
View Full Code Here

Examples of org.enhydra.shark.xpdl.elements.Participant

    }

    public Participant createXPDLObject(Participants ps,
            String type,
            boolean addToCollection) {
        Participant par = (Participant) ps.generateNewElement();
        adjustType(par, type);

        JaWETypes jts = JaWEManager.getInstance().getJaWEController().getJaWETypes();
        boolean hasTemplate = jts.hasTemplateId(type);
        if (hasTemplate) {
            jts.fillFromTemplate(par, type);
        }
        String id = par.getId();
        if (!hasTemplate || id.equals("") || ps.getParticipant(id) != null) {
            if (id.equals("")) {
                id = JaWEManager.getInstance().getIdFactory().generateUniqueId(ps);
            } else {
                id = JaWEManager.getInstance().getIdFactory().generateSimilarOrIdenticalUniqueId(ps, new HashSet(), id);
            }
            int i = 0;
            while (ps.getParticipant(id) != null) {
                id = id + String.valueOf(++i);
            }
            par.setId(id);
        }

        if (!hasTemplate || par.getName().equals("")) {
            //CUSTOM
            String num = id.substring("participant".length());
            par.setName("Participant " + num);
            //END CUSTOM
        }

        if (type == null || type.equals("")) {
            type = JaWEConstants.PARTICIPANT_TYPE_ROLE;
        }

        if (type.equals(JaWEConstants.PARTICIPANT_TYPE_HUMAN)) {
            par.getParticipantType().setTypeHUMAN();
        } else if (type.equals(JaWEConstants.PARTICIPANT_TYPE_ROLE)) {
            par.getParticipantType().setTypeROLE();
        } else if (type.equals(JaWEConstants.PARTICIPANT_TYPE_ORGANIZATIONAL_UNIT)) {
            par.getParticipantType().setTypeORGANIZATIONAL_UNIT();
        } else if (type.equals(JaWEConstants.PARTICIPANT_TYPE_RESOURCE)) {
            par.getParticipantType().setTypeRESOURCE();
        } else if (type.equals(JaWEConstants.PARTICIPANT_TYPE_RESOURCE_SET)) {
            par.getParticipantType().setTypeRESOURCE_SET();
        } else if (type.equals(JaWEConstants.PARTICIPANT_TYPE_SYSTEM)) {
            par.getParticipantType().setTypeSYSTEM();
        }

        adjustXPDLObject(par, type);

        if (addToCollection) {
View Full Code Here

Examples of org.fireflow.model.resource.Participant

                }

                DynamicAssignmentHandler dynamicAssignmentHandler = ((WorkflowSession)currentSession).consumeCurrentDynamicAssignmentHandler();
                FormTask task = (FormTask)taskInstance.getTask();

                Participant performer = task.getPerformer();//获取到form的执行者
                if (performer == null || performer.getAssignmentHandler().trim().equals("")) {
                    throw new EngineException(processInstance,
                            taskInstance.getActivity(),
                            "流程定义错误,Form类型的 task必须指定performer及其AssignmentHandler");
                }
                assign(currentSession,processInstance,runtimeContext,taskInstance, task, performer, dynamicAssignmentHandler);
View Full Code Here

Examples of org.osgi.service.coordinator.Participant

                this.participants.clear();
            }
            // consider failure reason (if not null)
            for (int i=releaseList.size()-1;i>=0;i--)
            {
                final Participant part = releaseList.get(i);
                try
                {
                    part.failed(this);
                }
                catch (final Exception e)
                {
                    LogWrapper.getLogger()
                        .log(LogWrapper.LOG_ERROR, "Participant threw exception during call to fail()", e);
View Full Code Here

Examples of org.osgi.service.coordinator.Participant

                this.participants.clear();
            }
            // consider failure reason (if not null)
            for (int i=releaseList.size()-1;i>=0;i--)
            {
                final Participant part = releaseList.get(i);
                try
                {
                    if ( this.failReason != null )
                    {
                        part.failed(this);
                    }
                    else
                    {
                        part.ended(this);
                    }
                }
                catch (final Exception e)
                {
                    LogWrapper.getLogger()
View Full Code Here

Examples of org.osgi.service.coordinator.Participant

    this.resource = resource;
    final File file = new File(Activator.getInstance().getBundleContext().getDataFile(""), Long.toString(resource.getId()));
    file.mkdirs();
    Coordination coordination = Activator.getInstance().getCoordinator().peek();
    if (coordination != null) {
      coordination.addParticipant(new Participant() {
        @Override
        public void ended(Coordination c) throws Exception {
          // Nothing
        }
View Full Code Here

Examples of org.osgi.service.coordinator.Participant

      return;
    // Don't let a resource become a child of itself.
    if (resource.equals(provisionTo))
      return;
    Activator.getInstance().getSubsystems().addChild(provisionTo, child, !isDependency());
    coordination.addParticipant(new Participant() {
      @Override
      public void ended(Coordination arg0) throws Exception {
        // Nothing
      }
View Full Code Here

Examples of org.osgi.service.coordinator.Participant

    });
  }
 
  private void addSubsystem(final BasicSubsystem subsystem) {
    Activator.getInstance().getSubsystems().addSubsystem(subsystem);
    coordination.addParticipant(new Participant() {
      @Override
      public void ended(Coordination arg0) throws Exception {
        // Nothing
      }
 
View Full Code Here

Examples of org.osgi.service.coordinator.Participant

 
  private void installRegionContextBundle(final BasicSubsystem subsystem) throws BundleException, IOException {
    if (!subsystem.isScoped())
      return;
    RegionContextBundleHelper.installRegionContextBundle(subsystem);
    coordination.addParticipant(new Participant() {
      @Override
      public void ended(Coordination coordination) throws Exception {
        // Nothing
      }
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.