Package com.starflow.wf.engine.model

Examples of com.starflow.wf.engine.model.ProcessInstance


public class ActLogicParticipantMode implements ParticipantMode {

  @SuppressWarnings("unchecked")
  public List<Participant> creatParticipants(AbstractFlowEvent event,
      ActivityElement activityXml) {
    ProcessInstance cloneProcessInstance = new ProcessInstance();
    BeanUtils.copyProperties(event.getProcessInstance(), cloneProcessInstance);
    String beanName = activityXml.getParticiLogic();
    List<Participant> participants;
    try {
      //beanName 名称后面没有指定调用方法时。直接调用IToolAppAction.execute
View Full Code Here


    if(workItem.getCurrentState() != StarFlowState.WORKITEM_WAITING_RECEIVE &&
        workItem.getCurrentState() != StarFlowState.WORKITEM_RUNNING)
      throw new ProcessEngineException("当前工作项(workitemid="+workItemId+")不处于状态,"+
          "无法完成工作项的运行!");
   
    final ProcessInstance processInstance = this.procInstRep.findProcessInstance(workItem.getProcessInstId());
    final ProcessDefine processDefine = this.procDefRep.findProcessDefine(processInstance.getProcessDefId());
    final ActivityElement activityXml = processDefine.getProcessObject().getActivitys().get(activityInst.getActivityDefId());
   
    transactionTemplate.execute(new TransactionCallbackWithoutResult() {
      @Override
      protected void doInTransactionWithoutResult(TransactionStatus status) {
View Full Code Here

TOP

Related Classes of com.starflow.wf.engine.model.ProcessInstance

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.