Skip to content

Commit

Permalink
fix #980
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobuzzi committed Oct 4, 2019
1 parent 36b5429 commit 6ca97dd
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ getComponentClass
The name of the task and the name of the OrbeonFormDefinition MUST be the same.
Also each time a task is created it get the lastest version of the OrbeonFormDefinition "

"if <reuseExternalObjectOfTaskNamed> is used then the component class is based in the original task named <reuseExternalObjectOfTaskNamed>"
reuseExternalObjectOfTaskNamed ifNotNil: [^self getExternalObjectTaskDefinition getComponentClass].

^processDefinition application
definitionNamed: name
ifNone: [self throwNoComponentFoundException]
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
},
"instance" : {
"acceptVisitor:" : "brunobb 12/10/2018 12:11",
"getComponentClass" : "brunobb 12/18/2018 08:08",
"getComponentClass" : "brunobb 10/04/2019 11:11",
"getObjectModel" : "BrunoBB 02/23/2016 09:13",
"isOrbeonTask" : "BrunoBB 12/20/2015 15:50",
"printNameAndDefinitionType" : "BrunoBB 03/08/2016 06:38",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
other
getComponentClass
"Answer a Seaside Component associated with the receiver.
The name of the task and the name of the Seaside Component MUST be the same."
| seasideComponent |

"if <reuseExternalObjectOfTaskNamed> is used then the component class is based in the original task named <reuseExternalObjectOfTaskNamed>"
reuseExternalObjectOfTaskNamed ifNotNil: [^self getExternalObjectTaskDefinition getComponentClass].

seasideComponent := Smalltalk at: (self extendedValueOf: 'seasideComponent' ifAbsent: [^self throwNoComponentFoundException]) asSymbol.

^seasideComponent
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
},
"instance" : {
"acceptVisitor:" : "brunobb 12/10/2018 12:11",
"getComponentClass" : "brunobb 12/18/2018 08:07",
"getComponentClass" : "brunobb 10/04/2019 11:16",
"getObjectModel" : "BrunoBB 02/19/2016 13:32",
"isSeasideTask" : "brunobb 04/24/2018 08:56",
"printNameAndDefinitionType" : "BrunoBB 03/08/2016 06:38",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ extended attributes
getExternalObjectTaskDefinition

reuseExternalObjectOfTaskNamed ifNil: [^nil].
reuseExternalObjectOfTaskNamed ifEmpty: [^nil].
reuseExternalObjectOfTaskNamed ifEmpty: [^nil].

^processDefinition getTaskNamed: reuseExternalObjectOfTaskNamed ifNone: [NoSuchActivitytException signal: 'Task Named [', reuseExternalObjectOfTaskNamed , '] for reuse not found']
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"canUnassign" : "brunobb 08/19/2019 10:18",
"canUnassign:" : "brunobb 08/19/2019 10:18",
"getComponentClass" : "brunobb 08/19/2019 10:18",
"getExternalObjectTaskDefinition" : "brunobb 08/19/2019 10:18",
"getExternalObjectTaskDefinition" : "brunobb 10/04/2019 11:09",
"getFieldNames" : "brunobb 08/19/2019 10:18",
"getObjectModel" : "brunobb 08/19/2019 10:18",
"hasExternalObjectReuse" : "brunobb 08/19/2019 10:18",
Expand Down
2 changes: 1 addition & 1 deletion repository/BpmCore.package/monticello.meta/version

Large diffs are not rendered by default.

0 comments on commit 6ca97dd

Please sign in to comment.