Skip to content

Commit

Permalink
Use short class name if the Workflow type is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed Jan 20, 2025
1 parent eaf1886 commit 7fc8b1d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ The plugin provides better autocomplete and links Workflow and Activity when wri
## Resources

Read the docs
[![Temporal Documentation](https://img.shields.io/static/v1?style=flat-square&label=&message=Dcumentation&logo=Temporal&color=7744ee)](https://docs.temporal.io/)
[![Temporal Documentation](https://img.shields.io/static/v1?style=flat-square&label=&message=Documentation&logo=Temporal&color=7744ee)](https://docs.temporal.io/)
[![PHP SDK Documentation](https://img.shields.io/static/v1?style=flat-square&label=PHP+SDK&message=Dev+guide&logo=Temporal&color=7766ee)](https://docs.temporal.io/develop/php)
[![PHP SDK API](https://img.shields.io/static/v1?style=flat-square&label=PHP+SDK&message=API&logo=PHP&color=447723&logoColor=aa88ff)](https://php.temporal.io/)

Expand Down
10 changes: 8 additions & 2 deletions resources/client.meta-storm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,21 @@
method="newUntypedWorkflowStub"
argument="0"
>
<collection name="temporal/sdk:workflow-type" argument="0" />
<collection name="temporal/sdk:workflow-type" argument="0">
<extractor xpath="" stopIfResolved="true" />
<extractor xpath="$containingClass" />
</collection>
<stopCompletion />
</classMethod>
<classMethod
class="\Temporal\Client\WorkflowClientInterface"
method="newUntypedRunningWorkflowStub"
argument="2"
>
<collection name="temporal/sdk:workflow-type" argument="0" />
<collection name="temporal/sdk:workflow-type" argument="0">
<extractor xpath="" stopIfResolved="true" />
<extractor xpath="$containingClass" />
</collection>
<stopCompletion />
</classMethod>
<classMethod
Expand Down
15 changes: 12 additions & 3 deletions resources/workflow.meta-storm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
method="continueAsNew"
argument="0"
>
<collection name="temporal/sdk:workflow-type" argument="0" />
<collection name="temporal/sdk:workflow-type" argument="0">
<extractor xpath="" stopIfResolved="true" />
<extractor xpath="$containingClass" />
</collection>
<stopCompletion />
</classMethod>
<classMethod
Expand All @@ -22,15 +25,21 @@
method="executeChildWorkflow"
argument="0"
>
<collection name="temporal/sdk:workflow-type" argument="0" />
<collection name="temporal/sdk:workflow-type" argument="0">
<extractor xpath="" stopIfResolved="true" />
<extractor xpath="$containingClass" />
</collection>
<stopCompletion />
</classMethod>
<classMethod
class="\Temporal\Workflow"
method="newUntypedChildWorkflowStub"
argument="0"
>
<collection name="temporal/sdk:workflow-type" argument="0" />
<collection name="temporal/sdk:workflow-type" argument="0">
<extractor xpath="" stopIfResolved="true" />
<extractor xpath="$containingClass" />
</collection>
<stopCompletion />
</classMethod>
<classMethod
Expand Down

0 comments on commit 7fc8b1d

Please sign in to comment.