Skip to content

Conversation

@acroca
Copy link
Member

@acroca acroca commented Jul 7, 2025

This PR adds support for calling sub-workflows across different AppIDs.

This feature has been implemented in activities here.

}

func WithAppID(targetAppID string) callActivityOption {
func WithActivityAppID(targetAppID string) callActivityOption {
Copy link
Member Author

Choose a reason for hiding this comment

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

This is necessary because the suborchestration and activity options live in the same task package.

Copy link

Choose a reason for hiding this comment

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

This should be fine since we have not released an SDK version with the original func name. If that wasn't the case we should need to create an alias for backwards compat.

Signed-off-by: Albert Callarisa <albert@diagrid.io>
@acroca acroca force-pushed the multiapp-suborquestration-wip branch from 086bd65 to 979834e Compare July 7, 2025 13:26
Comment on lines 150 to 153
if es := event.GetExecutionStarted(); es != nil && event.GetRouter() != nil {
parentAppID = event.GetRouter().GetSource()
break
}
Copy link

Choose a reason for hiding this comment

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

Is it ever the case that there are multiple GetExecutionStarted? Should we not have a source/router type field on the ParentInstance to determine source app ID rather than searching in the event history?

Copy link
Member Author

Choose a reason for hiding this comment

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

Makes sense, opened this PR adding this optional field.

Copy link
Member Author

Choose a reason for hiding this comment

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

it's now approved/merged, will do the changes to use this new field

}

func WithAppID(targetAppID string) callActivityOption {
func WithActivityAppID(targetAppID string) callActivityOption {
Copy link

Choose a reason for hiding this comment

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

This should be fine since we have not released an SDK version with the original func name. If that wasn't the case we should need to create an alias for backwards compat.

Signed-off-by: Albert Callarisa <albert@diagrid.io>
Copy link

@JoshVanL JoshVanL left a comment

Choose a reason for hiding this comment

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

lgmt

@JoshVanL JoshVanL merged commit ca54143 into dapr:main Jul 8, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants