J4.x

Workflow: Difference between revisions

From Joomla! Documentation

Uglyeoin (talk | contribs)
No edit summary
mNo edit summary
 
(47 intermediate revisions by 7 users not shown)
Line 7: Line 7:
<translate><!--T:2--> The Publishing Workflow component is used to replace static states (unpublished, published, trashed and archived) with a more generic approach. This way you can easily create a customized workflow to manage your articles within a component.</translate>  
<translate><!--T:2--> The Publishing Workflow component is used to replace static states (unpublished, published, trashed and archived) with a more generic approach. This way you can easily create a customized workflow to manage your articles within a component.</translate>  


*<translate><!--T:3--> The article backend view in Joomla3.x:</translate>
*<translate><!--T:3--> The article backend view in Joomla 3.x:</translate>
[[File:Article view 3-<translate><!--T:4--> en</translate>.png|800px]]
[[File:Article view 3-<translate><!--T:4--> en</translate>.png|800px]]
*<translate><!--T:5--> The article backend view in Joomla 4.x:</translate>
*<translate><!--T:5--> The article backend view in Joomla 4.x:</translate>
[[File:J4 Articles Backend.png|800px]]
[[File:J4 Articles Backend-<translate><!--T:52--> en</translate>.png|800px]]


<translate><!--T:7--> The article tool range is now smaller and the view generally tidier. You can create customized states for the articles and group them in categories.</translate>
<translate><!--T:7--> The article tool range is now smaller and the view generally tidier. You can create customized states for the articles and group them in categories.</translate>


<translate><!--T:8--> There is a tutorial page containing steps for the creation of your first workflow: [[S:MyLanguage/Publishing Workflow/Scenarios|Scenarios]].</translate><br />
<translate><!--T:8--> There is a tutorial page containing steps for the creation of your first workflow: [[S:MyLanguage/J4.x:Workflow/Scenarios|Scenarios]].</translate><br />
<translate>
<translate>
<!--T:9-->
<!--T:9-->
You can find more information about the implementation of the component in other areas on the page of the Google Summer of Code project DOC: [[S:MyLanguage/Publishing_Workflow_Implementation|Publishing Workflow Implementation]]</translate>
You can find more information about the implementation of the component in other areas on the page of the Google Summer of Code project DOC: [[S:MyLanguage/Publishing_Workflow_Implementation|Publishing Workflow Implementation]]</translate>
<translate><!--T:53--> You can disable workflows at any time by visiting "articles" or "workflows" and clicking "options" in the top right. Switch to the tab "Integration" and scroll down to "Enable Workflow".</translate>


<translate>
<translate>
Line 24: Line 26:
</translate>
</translate>
* <translate><!--T:11--> ''Workflows:'' You can create several workflows. Each workflow contains states, possible transitions and item conditions.</translate>
* <translate><!--T:11--> ''Workflows:'' You can create several workflows. Each workflow contains states, possible transitions and item conditions.</translate>
* <translate><!--T:12--> ''States:'' States can be regarded as steps within a workflow.</translate>
* <translate><!--T:12--> ''Stages:'' Stages are the start points and end points within a workflow.</translate>
* <translate><!--T:13--> ''Conditions:'' The condition of an item can be unpublished, published, trashed or archived.</translate>
* <translate><!--T:13--> ''State:'' The state of an item can be unpublished, published, trashed or archived. A state can be changed by executing a transition</translate>
* <translate><!--T:14--> ''Transitions:'' Transitions set the sequence of states an article has to pass.</translate>
* <translate><!--T:14--> ''Transitions:'' Transitions occur between stages. They are where the actions happen.</translate>
* <translate><!--T:15--> ''Categories:'' Articles can be assigned to categories.</translate>
* <translate><!--T:15--> ''Categories:'' Articles can be assigned to categories.</translate>


<translate>
<translate>
==Usage of the toolbar== <!--T:16-->
</translate>
<translate><!--T:17--> In the toolbar you find several buttons. You can select an item via the checkbox at the left of the title. At least one item must be selected to complete one of the following actions:</translate>
* <translate><!--T:18--> Publish or unpublish items</translate>
* <translate><!--T:19--> Set an item to default</translate>
* <translate><!--T:20--> Item Check-In</translate>
** <translate><!--T:21--> While a user is editing an item, the items edit functionality will be locked for other users during that period of time. The check-in function unlocks the item. '''Please keep in mind:''' Make sure that the edit process has been completed and saved before you unlock the item. Otherwise previously made changes could be lost.</translate>
* <translate><!--T:22--> Trash Items</translate>
** <translate><!--T:23--> '''Please keep in mind:''' Through the usage of the trash button you are only '''''moving items to trash'''''. This means the items status is being set to "trashed". In order to '''''delete an item completely''''', you have to use the search tools and filter for the status "trashed". In the displayed list of items, select the item you wish to be permanently deleted and click the trash button again.</translate>


<translate>
==Workflows== <!--T:24-->
==Workflows== <!--T:24-->
</translate>
</translate>
<translate><!--T:25--> The workflow resembles a sequence of steps. It can be accessed via the main top menu under "Content". You will be directed to the "Workflows List", an overview of all your existing workflows. A workflow contains several states of different conditions. Items (e.g. articles) can transit through those states.</translate>  
<translate><!--T:25--> The workflow resembles a sequence of steps. It can be accessed via the main top menu under "Content". You will be directed to the "Workflows List", an overview of all your existing workflows. A workflow contains several states of different conditions. Items (e.g. articles) can transit through those states.</translate>  


[[File:Workflows-en.png|800px|center|Workflows List]]
[[File:Workflows-<translate><!--T:55--> en</translate>.png|800px|Workflows List]]


* <translate><!--T:27--> You see the status of the workflow (published / unpublished)</translate>
* <translate><!--T:27--> You see the status of the workflow (published / unpublished)</translate>
* <translate><!--T:28--> Next to the status is the title. By clicking on the title you can ''edit the workflow''</translate>
* <translate><!--T:28--> Next to the status is the title. By clicking on the title you can ''edit the workflow''</translate>
** <translate><!--T:29--> ''Editable'': Title | Description | Status | Default Option | Permissions (Rights Management)</translate>
** <translate><!--T:29--> ''Editable'': Title | Description | Status | Default Option | Permissions (Rights Management)</translate>
* <translate><!--T:30--> Next to the title you find the option to ''Manage'' the workflow states (for more info see [[S:MyLanguage/Publishing_Workflow#States|States]])</translate>
* <translate><!--T:30--> Next to the title you find the option to ''Manage'' the workflow stages (for more info see [[S:MyLanguage/Publishing_Workflow#Stages|Stages]])</translate>
* <translate><!--T:31--> Next to the "States" is the default option</translate>
* <translate><!--T:31--> Next to the "Stages" is the default option</translate>
* <translate><!--T:32--> You find a yellow square icon, next to "default", representing the number of existing states in this workflow</translate>
* <translate><!--T:32--> You find a yellow icon, next to "default", representing the number of existing stages in this workflow</translate>
* <translate><!--T:33--> Next to the yellow circle is a blue arrow icon that represents the number of existing transitions in this workflow (for more info see[[S:MyLanguage/Publishing_Workflow#Transitions| Transitions]])</translate>
* <translate><!--T:33--> Next to the yellow circle is a blue icon that represents the number of existing transitions in this workflow (for more info see[[S:MyLanguage/Publishing_Workflow#Transitions| Transitions]])</translate>
* <translate><!--T:34--> You can also see the workflow ID.</translate>
* <translate><!--T:34--> You can also see the workflow ID.</translate>


<translate>
<translate>


==States== <!--T:35-->
==Stages== <!--T:35-->
</translate>
</translate>
<translate><!--T:36--> The states can be accessed through the "Workflows List" container via clicking on ''Manage'' states. You can set a default state (which must be of the condition "published"). When clicking on the title, you can ''Edit'' the state.</translate>
<translate><!--T:36--> The stages are accessed via the "Workflows List" container via clicking on the yellow icon showing the number of stages. You can edit the name of a stage by clicking on it.</translate>


[[File:States List-<translate><!--T:37--> en</translate>.png|800px|center|Workflows List]]


[[File:Edit State-<translate><!--T:38--> en</translate>.png|800px|center|Edit State]]
[[File:Stages-<translate><!--T:56--> en</translate>.png|800px|Stages View]]


* <translate><!--T:39--> In the second picture you find a status option to the right. This is the condition of the state.</translate>
[[File:Stages--edit-<translate><!--T:57--> en</translate>.png|800px|The Edit Stage view]]
* <translate><!--T:40--> To the left there is a "Condition of items in this State" dropdown. This concerns the status of the items (e.g. articles) which are currently in this state.</translate>
 
** <translate><!--T:41--> ''Example:'' A possible sequence of states would be: Unpublished {{rarr}} In Review {{rarr}}Published.</translate>
* <translate><!--T:39--> In the second picture you can edit the stage. You can enable or disable it and write a note. It also has a "default" toggle. If there is only one item you will not be able to toggle this.</translate>


<translate>
<translate>
Line 74: Line 66:
==Transitions== <!--T:42-->
==Transitions== <!--T:42-->
</translate>
</translate>
<translate><!--T:43--> Articles can transit from one state to another. The transitions can be managed through the "Workflows List" container via clicking on the blue arrow icon or via the menu on the left, after clicking on ''Manage'' states. You can set several transitions that items can go through. The possible states are based on the ones you have created for this specific workflow.</translate>
<translate><!--T:43--> Articles can transit from one stage to another. The transitions can be managed through the "Workflows List" container via clicking on the blue icon. You can set several transitions that items can go through. The possible stages are based on the ones you have created for this specific workflow.</translate>
 
<translate><!--T:58--> The ''current stage'' will define where this transition is applied. You can choose all stages, or a specific stage.</translate>
 
<translate><!--T:59--> The ''target stage'' is the stage the workflow will end up at after the transition has taken place.</translate>
 
[[File:Transitions--edit--description-<translate><!--T:60--> en</translate>.png|800px|Edit Transitions View]]
 
<translate><!--T:61--> The ''transition actions'' tab allows you to define what state the item will be in after the transition is complete. For example if the item is an article it could become unpublished, which is exactly what happens in the ''unpublish'' transition. You can also define whether the item is featured or not by the end of the state.</translate>
 
[[File:Transitions--edit--transition-actions-<translate><!--T:62--> en</translate>.png|800px|Edit Transition Actions]]
 
<translate><!--T:63--> The ''transition notifications'' tab allows you to define whether a notification is sent during that state. For example if an article has been written but needs to be proofread, you could send an email notification to the editor.</translate>
 
<translate><!--T:64--> You can also add additional message text. This will also allow you to use a [[J3.x:Language_Overrides_in_Joomla|language string]] which would make the message text translatable.</translate>
 
<translate><!--T:65--> The Usergroups option will allow you to define who will receive the notification. In the example we have chosen we would choose ''editor'' as the usergroup. In that example all users within that usergroup would get a notification.</translate>
 
<translate><!--T:66--> Finally there is the "more receivers" option. This allows you to choose individual users to receive this notification.</translate>
 
[[File:Transitions--edit--notification-<translate><!--T:67--> en</translate>.png|800px|Edit Transition Notification]]
 
<translate><!--T:68--> The final tab is the permissions tab. This allows you to set who can use this transition.</translate>


[[File:Edit Transition-<translate><!--T:44--> en</translate>.png|800px|center|Edit Transition]]
* <translate><!--T:69--> ''Example:'' In the transition "Next Step: Publishing" items are originally of the state "unpublished". They are, for example, in need of a review. After they have been reviewed, they can transit to the state "published".</translate>  


* <translate><!--T:45--> ''Example:'' In the transition "Next Step: Publishing" items are originally of the state "unpublished". They are, for example, in need of a review. After they have been reviewed, they can transit to the state "published".</translate>  
* <translate><!--T:70--> All the workflow transition actions are Joomla! workflow plugins. If you go to System{{rarr}}Plugins. Then change the "type" dropdown to "workflow" you will see the plugins. These can be disabled like any other plugin.</translate>
 
[[File:Workflows--plugins--workflows-<translate><!--T:71--> en</translate>.png|800px|Workflows Plugins]]


<translate>
<translate>
==Categories== <!--T:46-->
 
==Categories== <!--T:72-->
</translate>
</translate>
<translate><!--T:47--> Articles can be assigned to categories. They correspond to a certain workflow and can be customized in various ways. You can set a status, parent category and also restrict the access as well as the permissions.</translate>  
<translate><!--T:73--> Articles can be assigned to categories. They correspond to a certain workflow and can be customized in various ways. You can set a status, parent category and also restrict the access as well as the permissions. This option is not within the workflows screen. For this option you need to go to Content{{rarr}}Categories. Once there open any category and you will see a "workflows" tab.</translate>  
* <translate><!--T:48--> ''Example:'' You have certain articles that you want to be available only for administrators or users of a higher rank. You can call your category "Restricted" and set all permissions on "Allowed" for administrators or higher. This way you do not have to set those permissions for every article concerned but can move them into this special category and save time instead.</translate>
* <translate> <!--T:74--> ''Example:'' You have certain articles that you want to be available only for administrators or users of a higher rank. You can call your category "Restricted" and set all permissions on "Allowed" for administrators or higher. This way you do not have to set those permissions for every article concerned but can move them into this special category and save time instead.</translate>
 
[[File:Workflow-categories-<translate><!--T:75--> en</translate>.png|800px]]


<translate>
<translate>
==Related Information== <!--T:49-->
 
== Versioning == <!--T:79-->
</translate>
</translate>
<translate><!--T:50--> See also:</translate>
<translate><!--T:80--> When the workflow is enabled, fields managed by the workflow are excluded from the versioning (like "state" and "featured") to avoid permission conflicts.</translate>
<translate><!--T:51-->
 
 
<translate>
==Related Information== <!--T:76-->
</translate>
<translate>
<!--T:77-->
See also:</translate>
<translate>
<!--T:78-->
* [[S:MyLanguage/Publishing_Workflow_Implementation|Publishing Workflow Implementation]]
* [[S:MyLanguage/Publishing_Workflow_Implementation|Publishing Workflow Implementation]]
* [[S:MyLanguage/Publishing_Workflow/Scenarios|Scenarios]]</translate>
* [[S:MyLanguage/J4.x:Workflow/Scenarios|Scenarios]]</translate>


<noinclude>
<noinclude>

Latest revision as of 02:30, 21 February 2023

Joomla! 
4.x

Introduction

The Publishing Workflow component is used to replace static states (unpublished, published, trashed and archived) with a more generic approach. This way you can easily create a customized workflow to manage your articles within a component.

  • The article backend view in Joomla 3.x:

  • The article backend view in Joomla 4.x:

The article tool range is now smaller and the view generally tidier. You can create customized states for the articles and group them in categories.

There is a tutorial page containing steps for the creation of your first workflow: Scenarios.
You can find more information about the implementation of the component in other areas on the page of the Google Summer of Code project DOC: Publishing Workflow Implementation

You can disable workflows at any time by visiting "articles" or "workflows" and clicking "options" in the top right. Switch to the tab "Integration" and scroll down to "Enable Workflow".


Terms & Definitions

  • Workflows: You can create several workflows. Each workflow contains states, possible transitions and item conditions.
  • Stages: Stages are the start points and end points within a workflow.
  • State: The state of an item can be unpublished, published, trashed or archived. A state can be changed by executing a transition
  • Transitions: Transitions occur between stages. They are where the actions happen.
  • Categories: Articles can be assigned to categories.


Workflows

The workflow resembles a sequence of steps. It can be accessed via the main top menu under "Content". You will be directed to the "Workflows List", an overview of all your existing workflows. A workflow contains several states of different conditions. Items (e.g. articles) can transit through those states.

Workflows List

  • You see the status of the workflow (published / unpublished)
  • Next to the status is the title. By clicking on the title you can edit the workflow
    • Editable: Title | Description | Status | Default Option | Permissions (Rights Management)
  • Next to the title you find the option to Manage the workflow stages (for more info see Stages)
  • Next to the "Stages" is the default option
  • You find a yellow icon, next to "default", representing the number of existing stages in this workflow
  • Next to the yellow circle is a blue icon that represents the number of existing transitions in this workflow (for more info see Transitions)
  • You can also see the workflow ID.


Stages

The stages are accessed via the "Workflows List" container via clicking on the yellow icon showing the number of stages. You can edit the name of a stage by clicking on it.


Stages View

The Edit Stage view

  • In the second picture you can edit the stage. You can enable or disable it and write a note. It also has a "default" toggle. If there is only one item you will not be able to toggle this.


Transitions

Articles can transit from one stage to another. The transitions can be managed through the "Workflows List" container via clicking on the blue icon. You can set several transitions that items can go through. The possible stages are based on the ones you have created for this specific workflow.

The current stage will define where this transition is applied. You can choose all stages, or a specific stage.

The target stage is the stage the workflow will end up at after the transition has taken place.

Edit Transitions View

The transition actions tab allows you to define what state the item will be in after the transition is complete. For example if the item is an article it could become unpublished, which is exactly what happens in the unpublish transition. You can also define whether the item is featured or not by the end of the state.

Edit Transition Actions

The transition notifications tab allows you to define whether a notification is sent during that state. For example if an article has been written but needs to be proofread, you could send an email notification to the editor.

You can also add additional message text. This will also allow you to use a language string which would make the message text translatable.

The Usergroups option will allow you to define who will receive the notification. In the example we have chosen we would choose editor as the usergroup. In that example all users within that usergroup would get a notification.

Finally there is the "more receivers" option. This allows you to choose individual users to receive this notification.

Edit Transition Notification

The final tab is the permissions tab. This allows you to set who can use this transition.

  • Example: In the transition "Next Step: Publishing" items are originally of the state "unpublished". They are, for example, in need of a review. After they have been reviewed, they can transit to the state "published".
  • All the workflow transition actions are Joomla! workflow plugins. If you go to System  Plugins. Then change the "type" dropdown to "workflow" you will see the plugins. These can be disabled like any other plugin.

Workflows Plugins


Categories

Articles can be assigned to categories. They correspond to a certain workflow and can be customized in various ways. You can set a status, parent category and also restrict the access as well as the permissions. This option is not within the workflows screen. For this option you need to go to Content  Categories. Once there open any category and you will see a "workflows" tab.

  • Example: You have certain articles that you want to be available only for administrators or users of a higher rank. You can call your category "Restricted" and set all permissions on "Allowed" for administrators or higher. This way you do not have to set those permissions for every article concerned but can move them into this special category and save time instead.


Versioning

When the workflow is enabled, fields managed by the workflow are excluded from the versioning (like "state" and "featured") to avoid permission conflicts.


Related Information

See also: