Skip to content
Snippets Groups Projects
Commit 4716a40b authored by Sebastian Listl's avatar Sebastian Listl :speech_balloon:
Browse files

document service

parent da14f2d0
Branches major
No related tags found
1 merge request!6document service
Pipeline #32686 passed
{
"name": "@aditosoftware/workflow",
"version": "1.3.2",
"version": "1.3.3",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@aditosoftware/workflow",
"version": "1.3.2",
"version": "1.3.3",
"devDependencies": {
"@aditosoftware/devtools": "^1.0.6",
"@aditosoftware/eslint-config-adito": "^3.3.0",
......
{
"name": "@aditosoftware/workflow",
"version": "1.3.2",
"version": "1.3.3",
"adito": {
"type": "module"
},
......
......@@ -70,13 +70,6 @@ WorkflowUtils.getPossibleTargetContexts = function()
modules.loadService("workflowTargetContexts_service")
.forEach(service => contexts = contexts.concat(service()));
return contexts;
//return [
//"Organisation",
//"Person",
//"Offer",
//"Salesproject",
//"AdvertisingItem",
//];
};
/**
......
= workflowTargetContexts_service
Defines the possible target contexts of a workflow instance.
Expected return type: `string[]`
Example implementation:
[source,javascript]
----
return [
"Organisation",
"Person",
"Offer"
];
----
\ No newline at end of file
......@@ -2,4 +2,5 @@
<serviceDefinition xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.0.0" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/serviceDefinition/1.0.0">
<name>workflowTargetContexts_service</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<documentation>%aditoprj%/serviceDefinition/workflowTargetContexts_service/documentation.adoc</documentation>
</serviceDefinition>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment