No edit summary |
No edit summary |
||
Line 79: | Line 79: | ||
| - | | - | ||
|The revision time of the edited page. | |The revision time of the edited page. | ||
| | |timestamp | ||
|} | |} | ||
== | == Example == | ||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
<bpmn:task id="Activity_18egh9o" name="Edit page"> | <bpmn:task id="Activity_18egh9o" name="Edit page"> |
Revision as of 09:43, 18 January 2023
Description
The EditWikiPage activity appends content to an existing wiki page.
Short profile | |
---|---|
Name | EditWikiPage |
Async | Yes |
BPMN type | bpmn:Task
|
BPMN Extension Element "wf:type" | edit_page
|
Properties
Input properties
Each input property can provide a default value if no other value is set by the workflow.
Name of property | Source | Description | Possible values | Type |
---|---|---|---|---|
title
|
- | Name of the wiki page that will be edited by this activity. | string | |
user
|
- | Name of user that will be shown as making the edit. | Default value: MediaWiki default | string |
content
|
- | Content that will be added to the wiki page. | string | |
mode
|
- | How the content is added to the wiki page. |
|
string |
minor
|
- | The edit will be marked as major or minor revision. |
|
int |
Output properties
Name of property | Source | Description | Type |
---|---|---|---|
revisionId
|
- | The revision ID of the edited page. | string |
timestamp
|
- | The revision time of the edited page. | timestamp |
Example
<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>