Comment on page
Actor
An actor is an identity that participates on a process. The actors are defined in a scenario as JSON Schema and instantiated for the process.
Items in the
actors
property of the scenario aren't actor objects, but JSON schemas defining the properties available for the actor once instantiated in the process.The custom schema for actors should extend the basic actor schema, which means it must at least have a
title
and identity
and property.YAML
JSON
actors:
employer:
type: object
title: Employer
properties:
title:
type: string
name:
type: string
email:
type: string
format: email
identity:
$ref: "https://specs.letsflow.io/v0.2.0/identity/schema.json#"
employee:
$ref: "https://specs.letsflow.io/v0.2.0/actor/schema.json#employee"
{
"actors": {
"employer": {
"type": "object",
"title": "Employer",
"properties": {
"name": {
"type": "string"
},
"identity": {
"$ref": "https://specs.letsflow.io/v0.2.0/identity/schema.json#"
}
}
},
"employee": {
"$ref": "https://workflow.example.com/actors/employee/schema.json#"
}
}
}
Properties that aren't defined don't exist and can't be set, unless
additionalProperties
is set in the actor definition.https://specs.letsflow.io/v0.2.0/actor/schema.json#
The title of the actor. This is copied from the actor definition in the scenario.
The identity links a person or organization to an actor.
If another party takes over a role, the
identity
property of the actor in the process should change and not the keys of the identity. For instance if there is a change in supplier in the process, don't update the identity keys, but add an identity and switch the identity linked to the actor.Last modified 4yr ago