Package com.founder.fix.bpmn2extensions.fixflow

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


   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetSkipComment(SkipComment newSkipComment, NotificationChain msgs) {
    SkipComment oldSkipComment = skipComment;
    skipComment = newSkipComment;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FixFlowPackage.SKIP_STRATEGY__SKIP_COMMENT, oldSkipComment, newSkipComment);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here


   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetSkipComment(SkipComment newSkipComment, NotificationChain msgs) {
    SkipComment oldSkipComment = skipComment;
    skipComment = newSkipComment;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FixFlowPackage.CONNECTOR_INSTANCE__SKIP_COMMENT, oldSkipComment, newSkipComment);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

                  parameterItemsNode.add(cpodItemNode);
                }
                connectorInstanceItemNode.put(PROPERTY_CONNECTORPARAMETEROUTPUTSDEF, parameterItemsNode);
            }
           
            SkipComment skipComment = connectorInstance.getSkipComment();
            if(skipComment !=null){
              ObjectNode ItemNode = objectMapper.createObjectNode();
              ItemNode.put(PROPERTY_SKIPCOMMENT_EXPRESSION_ID, skipComment.getExpression().getId());
              ItemNode.put(PROPERTY_SKIPCOMMENT_EXPRESSION_NAME, skipComment.getExpression().getName());
              ItemNode.put(PROPERTY_SKIPCOMMENT_EXPRESSION_VALUE, skipComment.getExpression().getValue());
             
              connectorInstanceItemNode.put(PROPERTY_SKIPCOMMENT, ItemNode);
            }
           
           
View Full Code Here

                Expression expression = FixFlowFactory.eINSTANCE.createExpression();
                expression.setId(id);
                expression.setName(name);
              expression.setValue(value);
             
              SkipComment skipCommentElm = FixFlowFactory.eINSTANCE.createSkipComment();
              skipCommentElm.setExpression(expression);

                ConnectorInstance.setSkipComment(skipCommentElm);
              }
             
             
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);
        }
      }
    }

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

        } catch (Exception e) {

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

        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);
        }
        Expression skipExpression = skipStrategy.getExpression();
        if(skipExpression !=null){
          setPropertyValue(PROPERTY_ACTIVITY_SKIPEXPRESSION, skipExpression.getValue(), propertiesNode);
        }
View Full Code Here

        skipStrategy.setSkipAssignee(skipAssignee);
       
        Expression skipCommentExpression = FixFlowFactory.eINSTANCE.createExpression();
        skipCommentExpression.setName(skipCommentValue);
        skipCommentExpression.setValue(skipCommentValue);
        SkipComment skipComment = FixFlowFactory.eINSTANCE.createSkipComment();
        skipComment.setExpression(skipCommentExpression);
        skipStrategy.setSkipComment(skipComment);
       
        BpmnModelUtil.addExtensionElement(activity, FixFlowPackage.Literals.DOCUMENT_ROOT__SKIP_STRATEGY, skipStrategy);
      }
     
View Full Code Here

TOP

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

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.