Details
-
Fix
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
2.5.0
-
None
-
None
Description
Current Situation
- A Notice Board which is referenced by a single Workflow cannot be deleted despite a new Workflow version is added without a reference to the Notice Board.
- This is due to the fact that the previous version still references the Notice Board.
- The previous version should be deleted in the same transaction when no orders are running for the workflow..
Desired Behaviour
- It should work.
"Workflow with Board" in { val board = Board(BoardPath("BOARD"), ...) val workflow = Workflow(WorkflowPath("WORKFLOW-WITH-BOARD"), Seq( PostNotices(Seq(board.path)))) updateItems(workflow, board) val v2 = nextVersionId() val workflow2 = Workflow(workflow.path ~ v2, Nil) controllerApi .updateItems( Observable( AddVersion(v2), AddOrChangeSigned(toSignedString(workflow2)), DeleteSimple(board.path))) .await(99.s) .orThrow }
WARN ItemRoute - ItemIsStillReferenced: Item 'Board:BOARD' is still referenced by 'Workflow:WORKFLOW-WITH-BOARD~1'
Attachments
Issue Links
- is required by
-
JOC-1432 Renamed Objects should be deployed only if deletion of the old Object was successful
- Released