Skip to content

Commit a82ab53

Browse files
committed
workflow trigger doc : replace deprecated usage of property shape for integration & add link to replaceable dataset for how to use
1 parent 40ead1a commit a82ab53

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

25.4 KB
Loading
63.4 KB
Loading

docs/explore-and-author/graph-exploration/building-a-customized-user-interface/workflow-trigger/index.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,14 @@ To define a workflow trigger the following information is needed:
3030

3131
## Integration
3232

33-
Once a trigger resources is defined, it can be attached to a Node Shape by using a special-purpose non-validating Property Shape resources.
34-
Such property shapes use a `shui:provideWorkflowTrigger` statement to define, which workflow trigger are to be represented.
35-
SHACL path statements on such Property Shape resources are meaningless and ignored, but may be provided.
33+
A `shui:WidgetIntegration` shape element needs to be created from the previously defined workflow trigger.
34+
35+
![](create_new_widget_integration.png)
36+
37+
38+
Once the widget is created, it can be attached to a Node Shape by using a special-purpose non-validating [Widget property](../node-shapes#widgets).
39+
40+
![](adding_widget_to_node.png)
3641

3742
## Payload Structure
3843

@@ -44,9 +49,11 @@ Workflow Payload
4449
``` json
4550
{
4651
"graphIRI": "http://example.org/example-graph",
47-
"resourceIRI": "http://example.org/example-graph/examle-resource"
52+
"resourceIRI": "http://example.org/example-graph/example-resource"
4853
}
4954
```
5055

5156
- `graphIRI` is the IRI of the graph that is currently viewed, and
5257
- `resourceIRI`is the IRI of the resource that is viewed.
58+
59+
To make use of this dynamic payload, the underlying workflow should define variable input using [Replaceable Datasets](../../../../build/workflows#replaceable-datasets).

0 commit comments

Comments
 (0)