Workflow name and transition mismatch between Pimcore Admin UI and Pimcore Studio UI when using single-state marking store with custom SupportStrategy #2466
Chauhan-Mukesh
started this conversation in
General
Replies: 3 comments 1 reply
-
|
I checked it, yes this is a bug in studio-ui. Will fix it very soon: #2467 |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
I am facing same issue please suggest which version has resolved this issue. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@Chauhan-Mukesh @harshida-patel Currently we only have this in the 1.x branch, so you would need to install the 1.x branch or concrete commit hash to test it. We will do a new release with this change included soon but currently don't have an exact ETA which I can provide. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Context:
While integrating a single-state workflow with a custom support strategy (
App\Workflow\WorkflowSupportStrategy), I’ve observed that the same workflow functions correctly in the Pimcore Admin UI, but fails when triggered through the Pimcore Studio UI.Observed Error:
When trying to execute a transition (for example:
move_to_reviewing) via Studio, the following error occurs:Root Cause Analysis:
Tracing through
submitAction()in the Studio backend:Here,
$parameters->getWorkflowName()returnsgeneric_workflow, while in configuration the workflow is defined asgenericWorkflow.Pimcore Admin internally references workflow names exactly as defined in the YAML configuration.
However, Pimcore Studio appears to normalize workflow names (likely converting camelCase to snake_case), leading to a mismatch.
Workflow Config (excerpt):
The
submitAction()then throwsWorkflowActionSubmissionExceptionbecause$workflowRegistry->get()can’t locate the workflow under the normalized name.Additional Finding:
If I manually rename the workflow in YAML to match (
generic_workflow), the next issue appears during marking validation —the Studio expects the transition name as
move_to_reviewing, while the workflow defines it asworking_to_reviewing.Example config:
Excerpt from validation path:
This shows Studio is passing the action name instead of the transition name as defined in the workflow definition.
Conclusion:
genericWorkflow→generic_workflow.move_to_reviewing) instead of transition name (working_to_reviewing) when invoking the backend.Impact:
This causes all workflow transitions to fail in Studio UI for objects using custom support strategies and single-state marking stores.
--
Expected Behavior:
Studio UI should preserve exact workflow name and transition identifiers as defined in the YAML configuration, matching Admin UI behavior.
Environment:
App\Workflow\WorkflowSupportStrategyCould you please confirm if this is an actual issue in the Studio Bundle? If yes, is there any planned fix or known timeline for resolution?
In the meantime, is there any workaround or configuration adjustment I can apply on my side to align workflow name and transition handling between Studio UI and the Admin UI?
Beta Was this translation helpful? Give feedback.
All reactions