Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Improvement-15690][shell_task] Shell task to have Workflow instance #15691

Open
wants to merge 1 commit into
base: 3.1.8-release
Choose a base branch
from

Conversation

baratamavinash225
Copy link

…specific attributes for the use

  • TaskExecutionContext to have the processName and processInstanceName
  • TaskExecutionContextBuilder to have the processName and processInstanceName Variables
  • ShellTask to have the attributes replaced
    • WORKFLOW_NAME
    • WORKFLOW_INSTANCE_NAME
    • WORKFLOW_ID
    • WORKFLOW_INSTANCE_ID

This closed Improvement-15690

Purpose of the pull request

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

If your pull request contain incompatible change, you should also add it to docs/docs/en/guide/upgrede/incompatible.md

…specific attributes for the use

- TaskExecutionContext to have the processName and processInstanceName
- TaskExecutionContextBuilder to have the processName and processInstanceName Variables
- ShellTask to have the attributes replaced
	 - WORKFLOW_NAME
	 - WORKFLOW_INSTANCE_NAME
	 - WORKFLOW_ID
	 - WORKFLOW_INSTANCE_ID

This closed Improvement-15690
Copy link
Member

@SbloodyS SbloodyS left a comment

Choose a reason for hiding this comment

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

Please change your target branch to dev and link pr to your issue. @baratamavinash225

if(paramUtilsMap != null) {
map.putAll(paramUtilsMap);
}
map.put("WORKFLOW_NAME", taskExecutionContext.getProcessDefinitionName());
Copy link
Contributor

Choose a reason for hiding this comment

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

If it is a built-in variable, I think it should be the same for all task types (not only shell).
And I'm not sure about the benefits of these built-in variables, could you please give some examples?
Furthermore, relevant docs and UT should be added.

Copy link
Author

Choose a reason for hiding this comment

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

I have found useful for my use case. We are integrating the flows with the Splunk logs. While logging for the splunk events we are mapping this variable so that we can filter the logs in splunk at the workflow instance level.

Hence, we are using this. Reason we are pushing to splunk is we are not giving the dolphin UI to Users, instead we are giving a utility to run/schedule the jobs in the scheduler.

Copy link
Contributor

Choose a reason for hiding this comment

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

@baratamavinash225 The built-in parameters should be valid for all tasks, so I suggest you start a discussion on the mailing list.

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

Successfully merging this pull request may close these issues.

None yet

3 participants