Skip to content

Instantly share code, notes, and snippets.

@eduardolundgren
Created August 11, 2011 18:25
Show Gist options
  • Save eduardolundgren/1140352 to your computer and use it in GitHub Desktop.
Save eduardolundgren/1140352 to your computer and use it in GitHub Desktop.
Kaleo definition JSONML Array
var d = [
"workflow-definition",
{
"xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance",
"xmlns":"urn:liferay.com:liferay-workflow_6.1.0",
"xsi:schemaLocation":"urn:liferay.com:liferay-workflow_6.1.0 http://www.liferay.com/dtd/liferay-workflow-definition_6_1_0.xsd"
},
[
"name",
"Single Approver"
],
[
"description",
"A single approver can approve a workflow content."
],
[
"version",
1
],
[
"state",
[
"name",
"created"
],
[
"initial",
true
],
[
"transitions",
[
"transition",
[
"name",
"review"
],
[
"target",
"review"
]
],
[
"transition",
[
"name",
"review2"
],
[
"target",
"review2"
]
]
]
],
[
"task",
[
"name",
"review"
],
[
"actions",
[
"notification",
[
"name",
"Review Notification"
],
[
"template",
"You have a new submission waiting for your review in the workflow."
],
[
"template-language",
"text"
],
[
"notification-type",
"email"
],
[
"execution-type",
"onAssignment"
]
],
[
"notification",
[
"name",
"Review Completion Notification"
],
[
"template",
"Your submission has been reviewed and the reviewer has applied the following ${taskComments}."
],
[
"template-language",
"freemarker"
],
[
"notification-type",
"email"
],
[
"recipients",
[
"user"
]
],
[
"execution-type",
"onExit"
]
]
],
[
"assignments",
[
"roles",
[
"role",
[
"role-type",
"organization"
],
[
"name",
"Organization Administrator"
]
],
[
"role",
[
"role-type",
"organization"
],
[
"name",
"Organization Content Reviewer"
]
],
[
"role",
[
"role-type",
"organization"
],
[
"name",
"Organization Owner"
]
],
[
"role",
[
"role-type",
"regular"
],
[
"name",
"Administrator"
]
],
[
"role",
[
"role-type",
"regular"
],
[
"name",
"Portal Content Reviewer"
]
],
[
"role",
[
"role-type",
"site"
],
[
"name",
"Site Administrator"
]
],
[
"role",
[
"role-type",
"site"
],
[
"name",
"Site Content Reviewer"
]
],
[
"role",
[
"role-type",
"site"
],
[
"name",
"Site Owner"
]
]
]
],
[
"transitions",
[
"transition",
[
"name",
"approve"
],
[
"target",
"approved"
]
],
[
"transition",
[
"name",
"reject"
],
[
"target",
"update"
],
[
"default",
false
]
]
]
]
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment