- Issue created by @sundarraj.p
- 🇳🇱Netherlands johnv
I assume you have already tried/tested this.
Please re-assure that you use the Contrib module Workflow (this module), not core module Workflows (with s)My implementation plan consisted of supporting:
- 1 workflow field per entity
- multiple workflow fields per entity
- workflow field per entity version
I think I missed:
- workflow field per translation.Test preparations:
- make content type translatable on admin/config/regional/content-language
- set admin/structure/types/manage/CONTENTTYPE/translate
- make sure the field is translatable.Test:
- change an entity in language EN
- change the entity in language NLTest result:
- in field data, only NL records exists,
- in workflow_transition_history, two records exist, with EN and NL language code.So, I need to check how to support this use case.
- 🇳🇱Netherlands johnv
I updated above comment. Test 2 shows a correct result.
- Status changed to Closed: works as designed
over 1 year ago 9:50am 18 April 2023 - 🇮🇳India sundarraj.p
Hi johnv,
my apologies for the late reply..let me explain my use case,
For the same content type1. The English (default language) content must go through the following workflow
from creation -> Person1 -> Person2 ->Publish2. The Secondary language (Arabic) content must go through the following workflow
from creation -> Person3 -> Person4 ->Publishis this possible ?
Thanks in advance
- 🇮🇳India sundarraj.p
Hi johnv,
Reg., the previous issue ., is there any way that I can capture the workflow comments and other workflow details like
1. the user who performed the task
2. which task did he do ? (example: Approved or Rejected)
3. what is the comment which he has givenThis is for user specific notification purposes
example case : for the Author of the Article if the reviewer approves and forwards for publishing by another higher official
the Notification will be like : The Article (Title) has been reviewed by (name of the person who reviewed) on (the date and time of which the action was taken) and pending for publishing and the comment by the person is (comment).
this notification will be only sent for the author and not for the others involved in the workflow
- 🇳🇱Netherlands johnv
"is it possible to guide the content through the following language-dependent workflow"
Not out of the box. But please check the functions/hooks in workflow.api.php .
You can set a bigger workflow in Workflow settings, and then restrict the fields in a separate table using a hook."is there any way that I can capture the workflow comments"
You should be able to display the 'workflow history' page: /drupal/nl/node/8/workflow .
It is a tab on the node display page.
In the newest version, this is a view, that you can customize. You must have Views and Views UI enabled.There, you should be able to see all the details, that are also in table workflow_transition_history.
If not, please inform me - i will check."this notification will be only sent"
I guess with the above information, you can make progress.
- 🇮🇳India sundarraj.p
yes johnv, for the below mentioned one
"is there any way that I can capture the workflow comments"
You should be able to display the 'workflow history' page: /drupal/nl/node/8/workflow .I do see it in the tab which you have specified but is there any way that I can capture the workflow comment programmatically using hooks ?
- 🇳🇱Netherlands johnv
Please see workflow.api.php, where you will find function hook_workflow_comment_alter(&$comment, array &$context).
"* Allow other modules to change the user comment when saving a state change."