Package com.founder.fix.bpmn2extensions.fixflow

Examples of com.founder.fix.bpmn2extensions.fixflow.SkipAssignee


   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetSkipAssignee(SkipAssignee newSkipAssignee, NotificationChain msgs) {
    SkipAssignee oldSkipAssignee = skipAssignee;
    skipAssignee = newSkipAssignee;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FixFlowPackage.SKIP_STRATEGY__SKIP_ASSIGNEE, oldSkipAssignee, newSkipAssignee);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here


  // 覆写父类的跳过执行方法
  protected void skipExecute(ExecutionContext executionContext) {

    SkipStrategy skipStrategy = executionContext.getSkipStrategy();
    SkipAssignee skipAssignee = skipStrategy.getSkipAssignee();
    SkipComment skipComment = skipStrategy.getSkipComment();

    String skipAssigneeString = null;
    String skipCommentString = null;

    if (skipAssignee != null && skipAssignee.getExpression() != null) {
      if (skipAssignee.getExpression().getValue() != null && !skipAssignee.getExpression().getValue().equals("")) {
        try {
          skipAssigneeString = StringUtil.getString(ExpressionMgmt.execute(skipAssignee.getExpression().getValue(),
              executionContext));

        } catch (Exception e) {

          throw new FixFlowException("节点 " + this.getId() + " " + this.getName() + " 的跳过策略出错请检查流程配置!", e);
View Full Code Here

    //跳过策略
      SkipStrategy skipStrategy = activity.getSkipStrategy();
      if(skipStrategy !=null){
        setPropertyValue(PROPERTY_ACTIVITY_SKIPSTRATEGY, StringUtil.getString(skipStrategy.isIsEnable()), propertiesNode);
        setPropertyValue(PROPERTY_ACTIVITY_IS_CREATE_SKIP_PROCESS, StringUtil.getString(skipStrategy.isIsCreateSkipProcess()), propertiesNode);
        SkipAssignee skipAssignee = skipStrategy.getSkipAssignee();
        if(skipAssignee != null){
          setPropertyValue(PROPERTY_ACTIVITY_SKIPASSIGNEE, skipAssignee.getExpression().getValue(), propertiesNode);
        }
        SkipComment skipComment = skipStrategy.getSkipComment();
        if(skipComment !=null){
          setPropertyValue(PROPERTY_ACTIVITY_SKIPCOMMENT, skipComment.getExpression().getValue(), propertiesNode);
        }
View Full Code Here

        }
       
        Expression skipAssigneeExpression = FixFlowFactory.eINSTANCE.createExpression();
        skipAssigneeExpression.setName(skipAssigneeValue);
        skipAssigneeExpression.setValue(skipAssigneeValue);
        SkipAssignee skipAssignee = FixFlowFactory.eINSTANCE.createSkipAssignee();
        skipAssignee.setExpression(skipAssigneeExpression);
        skipStrategy.setSkipAssignee(skipAssignee);
       
        Expression skipCommentExpression = FixFlowFactory.eINSTANCE.createExpression();
        skipCommentExpression.setName(skipCommentValue);
        skipCommentExpression.setValue(skipCommentValue);
View Full Code Here

TOP

Related Classes of com.founder.fix.bpmn2extensions.fixflow.SkipAssignee

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.