Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Pass context params from an execution to a workflow execution #433

Merged
merged 7 commits into from
Jun 15, 2023

Commits on Jun 15, 2023

  1. Add invokingExecutionId to WorkflowRequestDTO to support context passing

    Enable using arguments from different another execution to use its
    execution level parameters.
    
    This could be used when an assessment workflow gathers inormation and
    stores it on the context and then when invoking a follow up workflow
    from the options of that assessment then the requester can pass the
    execution ID of the assessment.
    
    The data flow looks like that:
    
    Start -> Asssessment flow -> addParameter "foo": "bar" to WorkContext -> End with
    option 1
    
    Start -> Workflow from option 1 -> use Workcontext param "foo" -> work
    -> End
    
    The invoking execution ID isn't stored in the DB, it is just a request
    argument passed in the POST request for invoking a workflow.
    
    Signed-off-by: Roy Golan <rgolan@redhat.com>
    rgolangh authored and masayag committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    1e4c173 View commit details
    Browse the repository at this point in the history
  2. Rename invokingExecutionID to invokingExecutionId

    Signed-off-by: Moti Asayag <masayag@redhat.com>
    masayag committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    b1527cd View commit details
    Browse the repository at this point in the history
  3. Add generated SDK files

    Signed-off-by: Moti Asayag <masayag@redhat.com>
    masayag committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    f3cef50 View commit details
    Browse the repository at this point in the history
  4. Remove invokingContextID from work-unit

    Signed-off-by: Moti Asayag <masayag@redhat.com>
    masayag committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    807e289 View commit details
    Browse the repository at this point in the history
  5. Add generated SDK files

    Signed-off-by: Moti Asayag <masayag@redhat.com>
    masayag committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    6b28e39 View commit details
    Browse the repository at this point in the history
  6. Use ResourceNotFoundException when wrong ID is set

    Signed-off-by: Moti Asayag <masayag@redhat.com>
    masayag committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    4d5f187 View commit details
    Browse the repository at this point in the history
  7. Add unit-tests

    Signed-off-by: Moti Asayag <masayag@redhat.com>
    masayag committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    8daa39e View commit details
    Browse the repository at this point in the history