Skip to content

Commit

Permalink
update 49 to fix issue #1143
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobuzzi committed Aug 12, 2020
1 parent e3ed317 commit 4879bb4
Show file tree
Hide file tree
Showing 21 changed files with 51 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ other
getNextArtifactNamed: aString ifNone: aBlock
"The receiver answer the next artifact definition named <aString>"

^(outTransitions detect: [:transition | transition endArtifact name = aString] ifNone: [^aBlock value]) endArtifact
^(outTransitions detect: [:transition | transition endArtifactName = aString] ifNone: [^aBlock value]) endArtifact
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ timers
getNextTimers
"The receiver answer a collection with all events timers that are next to be executed"

^outTransitions select: [:transition | transition endArtifact isTimerEvent] thenCollect: [:transition | transition endArtifact]
^outTransitions select: [:transition | transition endArtifactIsTimerEvent] thenCollect: [:transition | transition endArtifact]
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ other
getNextTransitionForArtifactNamed: aString ifNone: aBlock
"The receiver answer the next transition definition that goes to artifact named <aString>"

^outTransitions detect: [:transition | transition endArtifact name = aString] ifNone: aBlock
^outTransitions detect: [:transition | transition endArtifactName = aString] ifNone: aBlock
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ timers
hasAnyTimerAsNextArtifact
"Answer whether or not the receiver has a timer event as next artifact"

^outTransitions anySatisfy: [:transition | transition endArtifact isTimerEvent]
^outTransitions anySatisfy: [:transition | transition endArtifactIsTimerEvent]
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
"extendedValueOf:" : "brunobb 07/01/2019 12:39",
"extendedValueOf:ifAbsent:" : "brunobb 07/01/2019 12:40",
"getFieldNames" : "BrunoBB 11/12/2016 07:51",
"getNextArtifactNamed:ifNone:" : "brunobb 10/17/2018 12:30",
"getNextTimers" : "brunobb 10/10/2018 09:53",
"getNextTransitionForArtifactNamed:ifNone:" : "brunobb 10/17/2018 12:31",
"getNextArtifactNamed:ifNone:" : "brunobb 08/12/2020 11:41",
"getNextTimers" : "brunobb 08/12/2020 11:39",
"getNextTransitionForArtifactNamed:ifNone:" : "brunobb 08/12/2020 11:42",
"getPreviousFields" : "BrunoBB 06/18/2016 11:40",
"grantRole:" : "brunobb 07/01/2019 12:43",
"hasAnyTimerAsNextArtifact" : "brunobb 10/10/2018 09:51",
"hasAnyTimerAsNextArtifact" : "brunobb 08/12/2020 11:39",
"hasAttachedEvents" : "brunobb 10/17/2017 12:39",
"hasInformedRoles" : "brunobb 04/30/2018 08:54",
"hasPerformers" : "BrunoBB 04/13/2016 10:17",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Accessing
endArtifactGetComponentClass

^endArtifact getComponentClass
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Accessing
endArtifactIsEndEvent

^endArtifact isEndEvent
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Accessing
endArtifactIsSeasideTask

^endArtifact isSeasideTask
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Accessing
endArtifactIsTimerEvent

^endArtifact isTimerEvent
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Accessing
endArtifactName

^endArtifact name
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Accessing
endNodeIsIdenticalTo: aBpmArtifactDefinition

^endArtifact == aBpmArtifactDefinition
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@
"endArtifact" : "BrunoBB 10/27/2015 17:30",
"endArtifact:" : "BrunoBB 10/27/2015 17:30",
"endArtifactDo:" : "brunobb 08/07/2020 11:45",
"endArtifactGetComponentClass" : "brunobb 08/12/2020 11:32",
"endArtifactIsEndEvent" : "brunobb 08/12/2020 11:33",
"endArtifactIsOrbeonTask" : "brunobb 08/12/2020 10:17",
"endArtifactIsSeasideTask" : "brunobb 08/12/2020 11:31",
"endArtifactIsTimerEvent" : "brunobb 08/12/2020 11:39",
"endArtifactName" : "brunobb 08/12/2020 11:41",
"endArtifactOutTransitionsDo:" : "brunobb 08/12/2020 10:15",
"endNodeIsIdenticalTo:" : "brunobb 08/12/2020 11:34",
"evaluateConditionIn:" : "brunobb 11/16/2018 17:34",
"evaluationCode" : "brunobb 08/07/2020 12:22",
"evaluationCode:" : "brunobb 08/07/2020 12:23",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ visiting
fieldName: fieldName isContainedInAny: transitionTreeNodes
"Answer whether or not in the collection of tree nodes <transitionTreeNodes> there is a field named <fieldName>"

^(transitionTreeNodes select: [:trNode | trNode endArtifact isOrbeonTask or:[trNode endArtifact isSeasideTask]])
anySatisfy: [:trNode | trNode endArtifact getComponentClass hasFieldNamed: fieldName]
^(transitionTreeNodes select: [:trNode | trNode endArtifactIsOrbeonTask or:[trNode endArtifactIsSeasideTask]])
anySatisfy: [:trNode | trNode endArtifactGetComponentClass hasFieldNamed: fieldName]
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ getAllPossiblePathToEnd

^self getAllPossiblePath select: [:pathCollection | | lastElement |
lastElement := pathCollection last.
lastElement transition endArtifact isEndEvent
lastElement transition endArtifactIsEndEvent
]
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"do:" : "brunobb 03/14/2019 03:05",
"endOrderDo:" : "brunobb 03/14/2019 03:05",
"endOrderDo:on:" : "brunobb 03/14/2019 03:05",
"fieldName:isContainedInAny:" : "brunobb 03/14/2019 03:05",
"fieldName:isContainedInAny:" : "brunobb 08/12/2020 11:32",
"getAllPossibleLoops" : "brunobb 03/14/2019 03:39",
"getAllPossiblePath" : "brunobb 08/16/2019 11:43",
"getAllPossiblePathToEnd" : "brunobb 08/16/2019 08:41",
"getAllPossiblePathToEnd" : "brunobb 08/12/2020 11:33",
"getArtifactsSize" : "brunobb 08/07/2020 11:42",
"getLeafNodes" : "brunobb 03/14/2019 03:05",
"initialize" : "brunobb 03/14/2019 03:16",
Expand Down
2 changes: 1 addition & 1 deletion repository/BpmCore.package/monticello.meta/version

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ timers
getNextTimers
"The receiver answer a collection with all events timers that are next to be executed"

^outTransitions select: [:transition | transition endArtifact isTimerEvent] thenCollect: [:transition | transition endArtifact]
^outTransitions select: [:transition | transition endArtifactIsTimerEvent] thenCollect: [:transition | transition endArtifact]
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"getNextArtifactDefinitionNamed:ifNone:" : "brunobb 10/18/2019 08:00",
"getNextPerformerIfNone:" : "brunobb 10/18/2019 08:00",
"getNextRoleIfNone:" : "brunobb 10/18/2019 08:00",
"getNextTimers" : "brunobb 10/18/2019 08:00",
"getNextTimers" : "brunobb 08/12/2020 11:42",
"getNextTransitionDefinitionForArtifactNamed:ifNone:" : "brunobb 10/18/2019 08:00",
"getSummaryFieldsValues" : "brunobb 10/18/2019 08:00",
"getTotalTime" : "brunobb 10/18/2019 08:00",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ createEventBasedTimerEventForGateway: aBpmEventDefinition
This method is used only with Event Based Gateways where one of the events is a Timer"
| eventInstance eventTransitionDefinition transitionInstance |

eventTransitionDefinition := definition outTransitionsDetect: [:each | each endArtifact == aBpmEventDefinition] ifNone: [NoTransitionException signal: 'No Transition to Timer found'].
eventTransitionDefinition := definition outTransitionsDetect: [:each | each endNodeIsIdenticalTo: aBpmEventDefinition] ifNone: [NoTransitionException signal: 'No Transition to Timer found'].

transitionInstance := process createNewTransition: eventTransitionDefinition from: self.

eventInstance := transitionInstance endArtifact.
eventInstance trigger: self.
transitionInstance endArtifactDo: [:endArtifact | endArtifact trigger: self.
eventInstance := endArtifact].

^eventInstance
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"class" : {
},
"instance" : {
"createEventBasedTimerEventForGateway:" : "brunobb 08/03/2020 13:15",
"createEventBasedTimerEventForGateway:" : "brunobb 08/12/2020 11:38",
"generateNextRunningTransitionsFromEvent:" : "brunobb 10/11/2018 10:18",
"incomingTransitionsAreDone" : "brunobb 08/03/2020 13:59",
"initialize" : "BrunoBB 11/24/2015 13:14",
Expand Down
2 changes: 1 addition & 1 deletion repository/BpmRuntime.package/monticello.meta/version

Large diffs are not rendered by default.

0 comments on commit 4879bb4

Please sign in to comment.