boolean isSkipEnabled = false;
if(skipEnabled !=null){
isSkipEnabled = getProperty(PROPERTY_ACTIVITY_SKIPSTRATEGY,elementNode).asBoolean();
}
if(isSkipEnabled){
SkipStrategy skipStrategy = FixFlowFactory.eINSTANCE.createSkipStrategy();
skipStrategy.setIsEnable(isSkipEnabled);
String skipExpressionValue = getPropertyValueAsString(PROPERTY_ACTIVITY_SKIPEXPRESSION, elementNode);
String skipAssigneeValue = getPropertyValueAsString(PROPERTY_ACTIVITY_SKIPASSIGNEE, elementNode);
String skipCommentValue = getPropertyValueAsString(PROPERTY_ACTIVITY_SKIPCOMMENT, elementNode);
Expression skipExpression = FixFlowFactory.eINSTANCE.createExpression();
skipExpression.setName(skipExpressionValue);
skipExpression.setValue(skipExpressionValue);
skipStrategy.setExpression(skipExpression);
boolean isCreateSkipProcess = getProperty(PROPERTY_ACTIVITY_IS_CREATE_SKIP_PROCESS, elementNode).asBoolean();
if(isCreateSkipProcess){
skipStrategy.setIsCreateSkipProcess(isCreateSkipProcess);
}
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);
SkipComment skipComment = FixFlowFactory.eINSTANCE.createSkipComment();
skipComment.setExpression(skipCommentExpression);
skipStrategy.setSkipComment(skipComment);
BpmnModelUtil.addExtensionElement(activity, FixFlowPackage.Literals.DOCUMENT_ROOT__SKIP_STRATEGY, skipStrategy);
}
ConnectorInstanceElm cie = new ConnectorInstanceElm();