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

Conversation

masayag
Copy link
Collaborator

@masayag masayag commented Jun 15, 2023

Add invokingExecutionId to WorkflowRequestDTO to support context passing

Enable using arguments from another execution to use its execution level parameters.

This could be used when an assessment workflow gathers information and stores it in 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 -> Assessment 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
Signed-off-by: Moti Asayag masayag@redhat.com

FLPATH-458

Copy link
Collaborator

@pkliczewski pkliczewski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

rgolangh and others added 7 commits June 15, 2023 16:51
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>
Signed-off-by: Moti Asayag <masayag@redhat.com>
Signed-off-by: Moti Asayag <masayag@redhat.com>
Signed-off-by: Moti Asayag <masayag@redhat.com>
Signed-off-by: Moti Asayag <masayag@redhat.com>
Signed-off-by: Moti Asayag <masayag@redhat.com>
Signed-off-by: Moti Asayag <masayag@redhat.com>
@pkliczewski
Copy link
Collaborator

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Jun 15, 2023
@openshift-ci
Copy link

openshift-ci bot commented Jun 15, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: eloycoto, RichardW98

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [RichardW98,eloycoto]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants