Skip to content

Commit

Permalink
put specific exceptions in send error of send task instance
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobuzzi committed Feb 3, 2020
1 parent 430d48c commit 355c155
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"receiverProcessId:" : "brunobb 11/26/2018 07:29",
"receiverProcessName" : "brunobb 11/26/2018 07:29",
"receiverProcessName:" : "brunobb 11/26/2018 07:29",
"send" : "brunobb 10/18/2019 10:26",
"send" : "brunobb 02/03/2020 11:41",
"targetProcesses" : "brunobb 11/26/2018 07:29",
"targetProcesses:" : "brunobb 11/26/2018 07:29",
"throwNoEventException" : "brunobb 11/26/2018 07:33",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ performInitializationOn: aBpmProcessInstance
This operatoin initialize the receiver inside the process <aBpmProcessInstance>"

aBpmProcessInstance registerEvent: self. "this task is registered as an event in <aBpmProcessInstance>"

message := self createInterProcessMessageFor: aBpmProcessInstance.

"here the target process identification is done by a set of values rather than the process id"
Expand All @@ -13,7 +13,7 @@ performInitializationOn: aBpmProcessInstance
message variablesToSet: (self collectValuesOf: definition fieldNamesToSet in: aBpmProcessInstance).

"for some reason the message could not be sent. (no target process found, event gateway or event does not exist or a Timer has closed the event gateway)"
[message send] on: Exception do: [:ex |
[message send] on: (NoProcessException, NoGatewayException, NoEventException) do: [:ex |
sendException:= ex.
self getAttachedErrorEvent
ifNotNil: [:eventDefinition | | properties |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"hasException" : "brunobb 10/18/2018 10:27",
"message" : "brunobb 10/17/2018 12:38",
"message:" : "brunobb 10/17/2018 12:38",
"performInitializationOn:" : "brunobb 09/17/2019 10:40",
"performInitializationOn:" : "brunobb 02/03/2020 11:50",
"sendException" : "brunobb 10/18/2018 10:27",
"sendException:" : "brunobb 10/18/2018 10:27" } }
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
},
"instance" : {
"defaultAction" : "brunobb 10/25/2018 08:18",
"isResumable" : "brunobb 10/25/2018 08:19" } }
"isResumable" : "brunobb 02/03/2020 11:52" } }
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
},
"instance" : {
"defaultAction" : "brunobb 10/25/2018 08:14",
"isResumable" : "brunobb 10/25/2018 08:06" } }
"isResumable" : "brunobb 02/03/2020 11:52" } }
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
},
"instance" : {
"defaultAction" : "brunobb 10/25/2018 08:19",
"isResumable" : "brunobb 10/25/2018 08:19" } }
"isResumable" : "brunobb 02/03/2020 11:52" } }
2 changes: 1 addition & 1 deletion repository/BpmRuntime.package/monticello.meta/version

Large diffs are not rendered by default.

0 comments on commit 355c155

Please sign in to comment.