Skip to content

Commit

Permalink
fix #932
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobuzzi committed Oct 11, 2019
1 parent 8de131a commit cc81208
Show file tree
Hide file tree
Showing 51 changed files with 111 additions and 170 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
gateways
acceptComplexGateway: aBpmComplexGatewayDefinition
acceptComplexGateway: aBpmComplexGatewayDefinition

self acceptGateway: aBpmComplexGatewayDefinition
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
gateways
acceptEventBasedGateway: aBpmEventBasedGatewayDefinition
acceptEventBasedGateway: aBpmEventBasedGatewayDefinition

self acceptGateway: aBpmEventBasedGatewayDefinition
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
gateways
acceptExclusiveEventBasedGateway: aBpmExclusiveEventBasedGatewayDefinition
acceptExclusiveEventBasedGateway: aBpmExclusiveEventBasedGatewayDefinition

self acceptGateway: aBpmExclusiveEventBasedGatewayDefinition
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
gateways
acceptExclusiveGateway: aBpmExclusiveGatewayDefinition
acceptExclusiveGateway: aBpmExclusiveGatewayDefinition

self acceptGateway: aBpmExclusiveGatewayDefinition
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
gateways
acceptGateway: aBpmGatewayDefinition
acceptGateway: aBpmGatewayDefinition

aBpmGatewayDefinition outTransitions do: [:each | each acceptVisitor: self].
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
gateways
acceptInclusiveGateway: aBpmInclusiveGatewayDefinition
acceptInclusiveGateway: aBpmInclusiveGatewayDefinition

self acceptGateway: aBpmInclusiveGatewayDefinition
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
events
acceptIntermediateEvent: aBpmIntermediateComponentDefinition
acceptIntermediateEvent: aBpmIntermediateComponentDefinition

aBpmIntermediateComponentDefinition eventDefinition outTransitions do: [:transition | transition acceptVisitor: self]
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
tasks
acceptOrbeonTask: aBpmOrbeonTaskDefinition
acceptOrbeonTask: aBpmOrbeonTaskDefinition

self acceptTask: aBpmOrbeonTaskDefinition
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
gateways
acceptParallelEventBasedGateway: aBpmParallelEventBasedGatewayDefinition
acceptParallelEventBasedGateway: aBpmParallelEventBasedGatewayDefinition

self acceptGateway: aBpmParallelEventBasedGatewayDefinition
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
gateways
acceptParallelGateway: aBpmParallelGatewayDefinition
acceptParallelGateway: aBpmParallelGatewayDefinition

self acceptGateway: aBpmParallelGatewayDefinition
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
tasks
acceptScriptTask: aBpmScriptTaskDefinition
acceptScriptTask: aBpmScriptTaskDefinition

self acceptTask: aBpmScriptTaskDefinition
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
tasks
acceptSeasideTask: aBpmSeasideTaskDefinition
acceptSeasideTask: aBpmSeasideTaskDefinition

self acceptTask: aBpmSeasideTaskDefinition
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
tasks
acceptSendTask: aBpmSendTaskDefinition
acceptSendTask: aBpmSendTaskDefinition

self acceptTask: aBpmSendTaskDefinition
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
events
acceptStartEvent: aBpmStartComponentDefinition
acceptStartEvent: aBpmStartComponentDefinition

aBpmStartComponentDefinition eventDefinition outTransitions do: [:transition | transition acceptVisitor: self]
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
tasks
acceptSubProcessTask: aBpmSubProcessTaskDefinition
acceptSubProcessTask: aBpmSubProcessTaskDefinition

self acceptTask: aBpmSubProcessTaskDefinition
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
tasks
acceptTask: aBpmAbstractTaskDefinition
acceptTask: aBpmAbstractTaskDefinition

(visitedTasks identityIncludes: aBpmAbstractTaskDefinition) ifTrue: [^self].

visitedTasks add: aBpmAbstractTaskDefinition.

aBpmAbstractTaskDefinition outTransitions do: [:each | each acceptVisitor: self].

aBpmAbstractTaskDefinition isTaskDefinition
ifTrue: [aBpmAbstractTaskDefinition attachedEvents do: [:each | each acceptVisitor: self]].
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
transition
acceptTransition: aBpmTransitionDefinition
acceptTransition: aBpmTransitionDefinition
"The receiver accept the transition <aBpmTransitionDefinition> and check if it has a condition.
Get all fields used in the condition and search in all <visitedTasks> for the used field.
If the field is not found --> the condition is going to fail"

(visitedTransitions identityIncludes: aBpmTransitionDefinition) ifTrue: [^self].

visitedTransitions add: aBpmTransitionDefinition.
aBpmTransitionDefinition getUsedFieldsNamesInCondition do: [:fieldName |
((visitedTasks select: [:each | each isOrbeonTask or:[each isSeasideTask]]) anySatisfy: [:task | task getComponentClass getFieldsNames includes: fieldName])
ifFalse: [missingEvaluationFields add: fieldName].
].

aBpmTransitionDefinition endArtifact acceptVisitor: self.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
other
hasMissingEvaluationFields

^missingEvaluationFields size
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Updating
missingEvaluationFields: newValue
missingEvaluationFields := newValue
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Accessing
missingEvaluationFields
^missingEvaluationFields
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,29 @@
"class" : {
},
"instance" : {
"acceptComplexGateway:" : "brunobb 08/14/2019 13:01",
"acceptEndEvent:" : "brunobb 08/14/2019 13:01",
"acceptEventBasedGateway:" : "brunobb 08/14/2019 13:01",
"acceptExclusiveEventBasedGateway:" : "brunobb 08/14/2019 13:01",
"acceptExclusiveGateway:" : "brunobb 08/14/2019 13:01",
"acceptGateway:" : "brunobb 08/14/2019 13:01",
"acceptInclusiveGateway:" : "brunobb 08/14/2019 13:01",
"acceptIntermediateEvent:" : "brunobb 08/14/2019 13:01",
"acceptOrbeonTask:" : "brunobb 08/14/2019 13:01",
"acceptParallelEventBasedGateway:" : "brunobb 08/14/2019 13:01",
"acceptParallelGateway:" : "brunobb 08/14/2019 13:01",
"acceptScriptTask:" : "brunobb 08/14/2019 13:01",
"acceptSeasideTask:" : "brunobb 08/14/2019 13:01",
"acceptSendTask:" : "brunobb 08/14/2019 13:01",
"acceptStartEvent:" : "brunobb 08/14/2019 13:01",
"acceptSubProcessTask:" : "brunobb 08/14/2019 13:01",
"acceptTask:" : "brunobb 10/09/2019 13:21",
"acceptTransition:" : "brunobb 08/14/2019 13:01" } }
"acceptComplexGateway:" : "brunobb 10/11/2019 06:47",
"acceptEndEvent:" : "brunobb 10/11/2019 06:47",
"acceptEventBasedGateway:" : "brunobb 10/11/2019 06:47",
"acceptExclusiveEventBasedGateway:" : "brunobb 10/11/2019 06:47",
"acceptExclusiveGateway:" : "brunobb 10/11/2019 06:47",
"acceptGateway:" : "brunobb 10/11/2019 06:47",
"acceptInclusiveGateway:" : "brunobb 10/11/2019 06:47",
"acceptIntermediateEvent:" : "brunobb 10/11/2019 06:47",
"acceptOrbeonTask:" : "brunobb 10/11/2019 06:47",
"acceptParallelEventBasedGateway:" : "brunobb 10/11/2019 06:47",
"acceptParallelGateway:" : "brunobb 10/11/2019 06:47",
"acceptScriptTask:" : "brunobb 10/11/2019 06:47",
"acceptSeasideTask:" : "brunobb 10/11/2019 06:47",
"acceptSendTask:" : "brunobb 10/11/2019 06:47",
"acceptStartEvent:" : "brunobb 10/11/2019 06:47",
"acceptSubProcessTask:" : "brunobb 10/11/2019 06:47",
"acceptTask:" : "brunobb 10/11/2019 06:47",
"acceptTransition:" : "brunobb 10/11/2019 06:47",
"hasMissingEvaluationFields" : "brunobb 10/11/2019 06:47",
"initialize" : "brunobb 10/11/2019 06:47",
"missingEvaluationFields" : "brunobb 10/11/2019 06:47",
"missingEvaluationFields:" : "brunobb 10/11/2019 06:47",
"visitedTasks" : "brunobb 10/11/2019 06:47",
"visitedTasks:" : "brunobb 10/11/2019 06:47",
"visitedTransitions" : "brunobb 10/11/2019 06:47",
"visitedTransitions:" : "brunobb 10/11/2019 06:47" } }
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
],
"commentStamp" : "",
"instvars" : [
],
"visitedTasks",
"visitedTransitions",
"missingEvaluationFields" ],
"name" : "BpmFieldsInCondtionsAfterGatewayVisitor",
"pools" : [
],
Expand Down
Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion repository/BpmCore.package/monticello.meta/version

Large diffs are not rendered by default.

Loading

0 comments on commit cc81208

Please sign in to comment.