Package org.eclipse.bpmn2

Examples of org.eclipse.bpmn2.FormalExpression


            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case Bpmn2Package.FORMAL_EXPRESSION: {
            FormalExpression formalExpression = (FormalExpression) theEObject;
            T result = caseFormalExpression(formalExpression);
            if (result == null)
                result = caseExpression(formalExpression);
            if (result == null)
                result = caseBaseElement(formalExpression);
View Full Code Here


  @SuppressWarnings("unchecked")
  public void execute(ExecutionContext executionContext,Event event) {
   
   
    Expression expression=this.getTimeDate();
    FormalExpression formalExpression=null;
    if(expression!=null){
      formalExpression=(FormalExpression)expression;
    }
    if(formalExpression==null){
      return ;
    }
   
    String expressionText=formalExpression.getBody();
   
    if(expressionText==null){
      throw new FixFlowException("超时表达式不能为空");
    }
    Date date=null;
View Full Code Here

  @Override
  protected FlowElement convertJsonToElement(JsonNode elementNode,JsonNode modelNode, Map<String, JsonNode> shapeMap) {
    SequenceFlow flow = Bpmn2Factory.eINSTANCE.createSequenceFlow();// SequenceFlow();
    String conditionString = getPropertyValueAsString(PROPERTY_SEQUENCEFLOW_CONDITION, elementNode);
    if (conditionString != null && StringUtil.isNotEmpty(conditionString)) {
      FormalExpression formalExpression = Bpmn2Factory.eINSTANCE.createFormalExpression();
      //formalExpression.setId("aaaaa");
      formalExpression.setBody(conditionString);
      flow.setConditionExpression(formalExpression);
    }
    String orderId = getPropertyValueAsString(PROPERTY_SEQUENCEFLOW_ORDERID, elementNode);
    if (orderId != null && StringUtil.isNotEmpty(orderId)) {
      BpmnModelUtil.addExtensionAttribute(flow, FixFlowPackage.Literals.DOCUMENT_ROOT__ORDER_ID, orderId);
View Full Code Here

    return ((FormalExpression)expression).getBody();
   
  }
 
  public static Expression getExpressionByString(String expression){
    FormalExpression formalExpression=Bpmn2Factory.eINSTANCE.createFormalExpression();
    formalExpression.setBody(expression);
    return formalExpression;
   
  }
View Full Code Here

      String resourceRange = StringUtil.getString(resourceRoleObj.eGet(FixFlowPackage.Literals.DOCUMENT_ROOT__RESOURCE_RANGE));
     
     
      boolean isContainsSub = StringUtil.getBoolean(resourceRoleObj.eGet(FixFlowPackage.Literals.DOCUMENT_ROOT__IS_CONTAINS_SUB));

      FormalExpression expression = (FormalExpression) resourceRoleObj.getResourceAssignmentExpression().getExpression();
      if (expression == null) {
        throw new FixFlowDbException("处理者表达式不能为空!");
      }
      TaskAssigneeDefinitionTo taskAssigneeDefinitionTo = new TaskAssigneeDefinitionTo();
      taskAssigneeDefinitionTo.setResourceRange(resourceRange);

     
     
      assignPolicyType=userTask.getAssignPolicyType();
     
 

      if (resourceTypeObj.equals("user")) {
        taskAssigneeDefinitionTo.setUserIdExpression(expression.getBody());
      } else {
        taskAssigneeDefinitionTo.setGroupIdExpression(expression.getBody());
        taskAssigneeDefinitionTo.setGroupTypeExpression(resourceTypeObj);
      }
      // 设置组是否包含子级
      taskAssigneeDefinitionTo.setContainsSub(isContainsSub);
View Full Code Here

            BpmnModelUtil.addExtensionAttribute(potentialOwner, FixFlowPackage.Literals.DOCUMENT_ROOT__RESOURCE_TYPE, resourceType);
            BpmnModelUtil.addExtensionAttribute(potentialOwner, FixFlowPackage.Literals.DOCUMENT_ROOT__INCLUDE_EXCLUSION, includeExclusion);
            BpmnModelUtil.addExtensionAttribute(potentialOwner, FixFlowPackage.Literals.DOCUMENT_ROOT__IS_CONTAINS_SUB, isContainSub);
            ResourceAssignmentExpression resourceAssignmentExpression = Bpmn2Factory.eINSTANCE.createResourceAssignmentExpression();
            potentialOwner.setName(resourceName);
            FormalExpression formalExpression = Bpmn2Factory.eINSTANCE.createFormalExpression();
            formalExpression.setBody(expressionBody);
            formalExpression.setId(expressionBody);
            resourceAssignmentExpression.setExpression(formalExpression);
            potentialOwner.setResourceAssignmentExpression(resourceAssignmentExpression);
            task.getResources().add(potentialOwner);
          }
        }
View Full Code Here

        outputCollectionExpression.setValue(outputDataCollection);
        loopDataOutputCollection.setExpression(outputCollectionExpression);
        BpmnModelUtil.addExtensionElement(newLoopCharacteristics, FixFlowPackage.Literals.DOCUMENT_ROOT__LOOP_DATA_OUTPUT_COLLECTION, loopDataOutputCollection);

        //完成表达式
        FormalExpression formalExpression= Bpmn2Factory.eINSTANCE.createFormalExpression();
        formalExpression.setId(completeExpression);
        formalExpression.setBody(completeExpression);
        newLoopCharacteristics.setCompletionCondition(formalExpression);
       
        activity.setLoopCharacteristics(newLoopCharacteristics);
       
      }
View Full Code Here

     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetMessagePath(FormalExpression newMessagePath,
            NotificationChain msgs) {
        FormalExpression oldMessagePath = messagePath;
        messagePath = newMessagePath;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
                    Bpmn2Package.CORRELATION_PROPERTY_RETRIEVAL_EXPRESSION__MESSAGE_PATH,
                    oldMessagePath, newMessagePath);
View Full Code Here

  public String getCompletionConditionExpression() {

    if (this.completionConditionExpression == null) {
      MultiInstanceLoopCharacteristics multiInstanceLoopCharacteristics = (MultiInstanceLoopCharacteristics) loopCharacteristics;

      FormalExpression completionConditionExpression = (FormalExpression) multiInstanceLoopCharacteristics
          .getCompletionCondition();
      if (completionConditionExpression != null) {
        String evalue = completionConditionExpression.getBody();
        this.completionConditionExpression = evalue;
      }

    }
View Full Code Here

     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetTransformation(FormalExpression newTransformation,
            NotificationChain msgs) {
        FormalExpression oldTransformation = transformation;
        transformation = newTransformation;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
                    Bpmn2Package.DATA_ASSOCIATION__TRANSFORMATION, oldTransformation,
                    newTransformation);
View Full Code Here

TOP

Related Classes of org.eclipse.bpmn2.FormalExpression

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.