Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 0.9.3
-
Component/s: None
-
Labels:None
-
Request Controller:Czeranka, Norbert
-
External Supervisor:Voitovich, Mary
-
Executing Programmer:Please select
-
Ext Project Id:JCINC-01.2.5
Description
If we create workflow where one Node will have transition to self, and during workflow execution we should move by this transition some times we can get UncategorizedSQLException (see attached log).
The reason of this problem is the updateNodeSequence from ProcessManagerService.
public def updateNodeSequence(fromNode, toNode, eventID) { def nextAssigneeToString = '' toNode.owners?.each() { if (nextAssigneeToString != '') { nextAssigneeToString += "," } nextAssigneeToString += it.ownerID } new ProcessNodeSequence(processID: fromNode.processID, fromNodeID: fromNode.nodeID, toNodeID: toNode.nodeID, eventID: eventID, startedFromDate: fromNode.startedOn, startedToDate: toNode.startedOn, caller: toNode.caller, owners: nextAssigneeToString) .save() }
As you can see nextAssigneeToString is increased each executed time. Ad it can lead to string more that 256 characters (length into DataBase schema). As quick solution we offer to add check by length of nextAssigneeToString and don't increase it in case of more that 256 characters.
This problem is specify only for branch: rel_20090330