I have use token [workflow-new-state-name] but it not working for label pattern for button for transitioning workflow state.

Comments

anjjriit’s picture

Sorry, i made a mistake in uploaded image. Should be this image attached in this issue

rdeboer’s picture

Yes this is a known issue in Workflow Extensions 7.x-1.x.
Basically I haven't had time to complete the port and neither has Workflow Name Transitions been ported.

alex.bukach’s picture

In fact, one can use workflow: prefix for tokens (contrary to label field description). So that one should use [workflow:workflow-new-state-name], [workflow:workflow-current-state-name], [workflow:workflow-name] instead of [workflow-new-state-name], [workflow-current-state-name], [workflow-name], respectively.

@RdeBoer, why just not to change field description properly?

rdeboer’s picture

Assigned: Unassigned » rdeboer
Status: Active » Fixed

Alex Bukach is right. The tokens already work, just the names quoted in the help text are wrong.
I've updated the help text and the README in the latest 7.x-1.x-dev. Note that Workflow Name Transitions is not required, but the Token module is.
Rik

matt.rad’s picture

I was having the same issue, and the [workflow:workflow-new-state-name] type tokens are working fine, but FYI the help text on the field for tokens at admin/config/workflow/workflow_extensions still is of the old format (i.e. [workflow-new-state-name]) in 7.x-1.x-dev.

rdeboer’s picture

StatusFileSize
new550.81 KB

@matt.rad, #5:

????? See attached screenshot, which is the same for both 7.x-1.0 and 7.x-1.x-dev versions. The new tokens are clearly in the help text. The README was also updated.
Workflow Extensions config page

matt.rad’s picture

Sorry. My mistake. You are right.

I double-checked and I had installed a different version (beta3 &4) by mistake.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.