Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-2031

Change of Workflow together with removal of unused Notice Board

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Minor
    • Resolution: Fixed
    • 2.5.0
    • 2.5.1
    • 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

          Activity

            People

              jz Joacim Zschimmer
              jz Joacim Zschimmer
              Pramokshi Narawariya Pramokshi Narawariya
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: