Skip to content

Conversation

mcruzdev
Copy link

Many thanks for submitting your Pull Request ❤️!

What this PR does / why we need it:

Special notes for reviewers:

Additional information (if needed):

Signed-off-by: Matheus Cruz <[email protected]>
if (template.getLiteralUri() != null) {

Optional<JsonNode> jsonNode =
WorkflowUtils.classpathResourceToNode(template.getLiteralUri().toString());
Copy link
Collaborator

Choose a reason for hiding this comment

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

You are suppose to use ReasourceLoader (from workflowContext.definition().resourceLoader()) to load the resource.
See https://github.com/serverlessworkflow/sdk-java/blob/main/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowUtils.java#L58

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