Manual:Extension/Workflows/Activity/EditPage and User:Margit.link-rodrigue: Difference between pages

(Difference between pages)
No edit summary
 
No edit summary
Tag: 2017 source edit
 
Line 1: Line 1:
==<span class="mw-headline">Description</span>==
{{Userpage standard content}}
The ''EditWikiPage'' activity appends content to an existing wiki page.
{{#ask: [[IMS Role owner::{{PAGENAME}}]] [[Modification date::+]] }}
{| class="wikitable" style=""
! colspan="2" style="background-color:rgb(234, 236, 240);text-align:center;" |'''Short profile'''
|-
| style="" |Name
| style="" |EditWikiPage
|-
| style="" |Async
| style="" |Yes
|-
| style="" |BPMN type
| style="" |<code>bpmn:Task</code>
|-
|BPMN Extension Element "wf:type"
|<code>edit_page</code>
|}
 
==<span class="mw-headline">Properties</span>==
 
=== Input properties ===
Each input property can provide a default value if no other value is set by the workflow.
{| class="wikitable" style="width:100%;"
! style="background-color:rgb(234, 236, 240);text-align:center;" |Name of property
!Source
! style="background-color:rgb(234, 236, 240);text-align:center;" |Description
!Possible values
! style="background-color:rgb(234, 236, 240);text-align:center;" |Type
|-
| style="" |<code>title</code>
|<nowiki>-</nowiki>
| style="" |Name of the wiki page that will be edited by this activity.
|
| style="" |string
|-
|<code>user</code>
|  -
|Name of user that will be shown as making the edit.
|Default value: ''MediaWiki default''
|string
|-
|<code>content</code>
|  -
|Content that will be added to the wiki page.
|
|string
|-
|<code>mode</code>
|  -
|How the content is added to the wiki page.
|
* ''append:'' Content is added at the end of the page.
* ''replace:'' Content replaces all existing page content.
* ''prepend:'' Content is added at the beginning of the page.
|string
|-
|<code>minor</code>
|  -
|The edit will be marked as ''major'' or ''minor'' revision.
|
* ''1'' (=minor revision)
* ''0'' (=major revision)
|int
|}
 
=== Output properties ===
{| class="wikitable" style="width:100%;"
! style="background-color:rgb(234, 236, 240);text-align:center;" |Name of property
!Source
! style="background-color:rgb(234, 236, 240);text-align:center;" |Description
! style="background-color:rgb(234, 236, 240);text-align:center;" |Type
|-
|<code>revisionId</code>
| -
|The revision ID of the edited page.
|string
|-
|<code>timestamp</code>
| -
|The revision time of the edited page.
|int
|}
 
== Usage ==
<syntaxhighlight lang="xml">
<bpmn:task id="Activity_18egh9o" name="Edit page">
    <bpmn:extensionElements>
<wf:type>edit_page</wf:type>
</bpmn:extensionElements>
<bpmn:property name="title" default="Some page" validation="required"/>
<bpmn:property name="user" default="Mediawiki default" validation="existing-user"/>
<bpmn:property name="content" default="This is my test at editing"/>
<bpmn:property name="mode" default="append"/> <!-- ALlowed: append, replace, prepend -->
<bpmn:property name="minor" default="1"/>
<!-- Output properties -->
<bpmn:property name="revisionId"/>
<bpmn:property name="timestamp"/>
</bpmn:task>
</syntaxhighlight>

Revision as of 13:43, 18 January 2023





To submit feedback about this documentation, visit our community forum.

No categories assignedEdit

Discussions