Skip to content

Commit

Permalink
Task notification
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrands02 committed Oct 4, 2024
1 parent c41c8ee commit 2a8294e
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Installation/Action/xxllnctoktb.syncCaseAndAddToTaak.action.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"title": "SyncCaseAndAddToTaak",
"$id": "https://commongateway.nl/action/xxllnctoktb.SyncCaseAndAddToTaak.action.json",
"$schema": "https://docs.commongateway.nl/schemas/Action.schema.json",
"version": "0.0.1",
"listens": ["xxllnctoktb.syncCaseOfTaak"],
"conditions": {
"!!": { "var": "relationships.case.data.id" }
},
"class": "CommonGateway\\XxllncToKTBBundle\\ActionHandler\\NotificationHandler",
"configuration": {
"mapping": "https://commongateway.nl/mapping/xxllnctoktb.TaskToKTBTask.mapping.json",
"schema": "https://commongateway.nl/klant.taak.schema.json",
"source": "https://development.zaaksysteem.nl/source/xxllnc.zaaksysteemv1.source.json",
"sourceIdField": "task_uuid",
"pluginName": "common-gateway/xxllnc-to-ktb-bundle"
}
}
19 changes: 19 additions & 0 deletions Installation/Action/xxllnctoktb.syncTaskToTaak.action.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"title": "SyncTaskToTaak",
"$id": "https://commongateway.nl/action/xxllnctoktb.SyncTaskToTaak.action.json",
"$schema": "https://docs.commongateway.nl/schemas/Action.schema.json",
"version": "0.0.1",
"listens": ["xxllnctoktb.notification.task"],
"throws": ["xxllnctoktb.syncCaseOfTaak"],
"conditions": {
"!!": { "var": "task_uuid" }
},
"class": "CommonGateway\\CoreBundle\\ActionHandler\\NotificationHandler",
"configuration": {
"mapping": "https://commongateway.nl/mapping/xxllnctoktb.TaskToTaak.mapping.json",
"schema": "https://commongateway.nl/klant.taak.schema.json",
"source": "https://development.zaaksysteem.nl/source/xxllnc.zaaksysteemv2.source.json",
"sourceIdField": "task_uuid",
"pluginName": "common-gateway/xxllnc-to-ktb-bundle"
}
}
20 changes: 20 additions & 0 deletions Installation/Mapping/xxllnctoktb.taskToTaak.mapping.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"title": "TaskToTaak",
"$id": "https://development.zaaksysteem.nl/mapping/xxllnc.TaskToTaak.mapping.json",
"$schema": "https://docs.commongateway.nl/schemas/Mapping.schema.json",
"version": "0.0.1",
"passTrough": false,
"mapping": {
"_sourceId": "id",
"type": "https://development.zaaksysteem.nl/apidocs/?urls.primaryName=API+v2+-+Case+Management#/Tasks/get_task_list",
"title": "attributes.title",
"onderwerp": "attributes.title",
"toelichting": "attributes.description"
},
"cast": {
"_sourcedId": "unsetIfValue==id",
"title": "unsetIfValue==attributes.title",
"onderwerp": "unsetIfValue==attributes.title",
"toelichting": "unsetIfValue==attributes.description"
}
}
14 changes: 14 additions & 0 deletions Installation/Schema/xxllnctoktb.notification.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$id": "https://commongateway.nl/schema/xxllnctoktb.notification.schema.json",
"$schema": "https://docs.commongateway.nl/schemas/Entity.schema.json",
"version": "0.1",
"title": "Notification",
"description": "A notification object from xxllnc",
"type": "object",
"properties": {
"changes": {
"type": "array",
"format": "json"
}
}
}

0 comments on commit 2a8294e

Please sign in to comment.