Skip to content

[Feature-#8318] [master-server] Sub process transfer parameters to father process#8522

Merged
lenboo merged 6 commits into
apache:devfrom
wangxj3:subProcessParam
Mar 30, 2022
Merged

[Feature-#8318] [master-server] Sub process transfer parameters to father process#8522
lenboo merged 6 commits into
apache:devfrom
wangxj3:subProcessParam

Conversation

@wangxj3
Copy link
Copy Markdown
Contributor

@wangxj3 wangxj3 commented Feb 24, 2022

[Feature-#8318] [master-server] Sub process transfer parameters to father process
When you use the out param in taskNode of subpeocess, the father processInstance could get the param definde in the subProcess.

@caishunfeng
Copy link
Copy Markdown
Contributor

Hi @wangxj3 please resolve the conflicts.

@caishunfeng caishunfeng requested a review from lenboo March 12, 2022 12:53
…to subProcessParam

# Conflicts:
#	dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteThread.java
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 14, 2022

Codecov Report

❌ Patch coverage is 43.47826% with 26 lines in your changes missing coverage. Please review.
✅ Project coverage is 40.17%. Comparing base (a56e1d2) to head (9bb6044).
⚠️ Report is 2505 commits behind head on dev.

Files with missing lines Patch % Lines
...er/server/master/runner/WorkflowExecuteThread.java 0.00% 14 Missing ⚠️
...lphinscheduler/service/process/ProcessService.java 25.00% 9 Missing ⚠️
...er/server/master/runner/task/SubTaskProcessor.java 85.00% 0 Missing and 3 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #8522      +/-   ##
============================================
+ Coverage     40.09%   40.17%   +0.07%     
- Complexity     4374     4379       +5     
============================================
  Files           820      820              
  Lines         32743    32778      +35     
  Branches       3640     3648       +8     
============================================
+ Hits          13129    13168      +39     
+ Misses        18387    18374      -13     
- Partials       1227     1236       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@caishunfeng caishunfeng added the miss:docs missing documents in PR label Mar 15, 2022
List<Property> varPoolProperties = JSONUtils.toList(thisTaskInstanceVarPool, Property.class);
Map<String, Object> taskParams = JSONUtils.parseObject(taskInstance.getTaskParams(), new TypeReference<Map<String, Object>>() {
});
Object localParams = taskParams.get(LOCAL_PARAMS);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should global parameters be handled as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

the globalParam is a static param for the instance ,so i don't think it's should be handled here.

@caishunfeng
Copy link
Copy Markdown
Contributor

Hi @wangxj3 this feature also need to change doc, so I add the miss document label for it.

wangxj added 2 commits March 29, 2022 14:46
…to subProcessParam

# Conflicts:
#	dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteThread.java
#	dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/task/SubTaskProcessor.java
#	dolphinscheduler-master/src/test/java/org/apache/dolphinscheduler/server/master/SubProcessTaskTest.java
#	dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

50.8% 50.8% Coverage
0.0% 0.0% Duplication

@caishunfeng caishunfeng self-requested a review March 29, 2022 08:54
Copy link
Copy Markdown
Contributor

@caishunfeng caishunfeng left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@lenboo lenboo left a comment

Choose a reason for hiding this comment

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

+1

@lenboo lenboo merged commit fd76436 into apache:dev Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

miss:docs missing documents in PR

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants