Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Mentioned the audit_trail workflow option#10124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
javiereguiluz merged 1 commit intosymfony:3.4fromjaviereguiluz:fix_7692
Jul 30, 2018
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletionsworkflow/usage.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -27,6 +27,7 @@ like this:
workflows:
blog_publishing:
type: 'workflow' # or 'state_machine'
audit_trail: 'enabled'
marking_store:
type: 'multiple_state' # or 'single_state'
arguments:
Expand DownExpand Up@@ -62,7 +63,7 @@ like this:
>

<framework:config>
<framework:workflow name="blog_publishing" type="workflow">
<framework:workflow name="blog_publishing" type="workflow" audit_trail="enabled">
<framework:marking-store type="single_state">
<framework:argument>currentPlace</framework:argument>
</framework:marking-store>
Expand DownExpand Up@@ -106,6 +107,7 @@ like this:
'workflows' => array(
'blog_publishing' => array(
'type' => 'workflow', // or 'state_machine'
'audit_trail' => 'enabled',
'marking_store' => array(
'type' => 'multiple_state', // or 'single_state'
'arguments' => array('currentPlace')
Expand DownExpand Up@@ -157,6 +159,14 @@ like this:
attributes of the ``marking_store`` option are optional. If omitted, their default values
will be used.

.. tip::

Setting the ``audit_trail`` option to ``enabled`` makes the application
generate detailed log messages for the workflow activity.

.. versionadded:: 3.3
The ``audit_trail`` option was introduced in Symfony 3.3.

With this workflow named ``blog_publishing``, you can get help to decide
what actions are allowed on a blog post::

Expand DownExpand Up@@ -241,10 +251,10 @@ order:
* ``workflow.entered``
* ``workflow.[workflow name].entered``
* ``workflow.[workflow name].entered.[place name]``

``workflow.completed``
The object has completed this transition.

The three events being dispatched are:

* ``workflow.completed``
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp