Skip to content

Commit

Permalink
fix: decomposed workflow sub types definition (#942)
Browse files Browse the repository at this point in the history
  • Loading branch information
scolladon authored Nov 4, 2024
1 parent 9f00b46 commit 5e3ded6
Show file tree
Hide file tree
Showing 18 changed files with 375 additions and 205 deletions.
2 changes: 1 addition & 1 deletion __tests__/integration/services.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const testContext = [
'SharingCriteriaRule',
],
[
'force-app/main/default/workflows/Account/alerts/TestWFAlert.alert-meta.xml',
'force-app/main/default/workflows/Account/workflowAlerts/TestWFAlert.workflowAlert-meta.xml',
new Set(['Account.TestWFAlert']),
'WorkflowAlert',
],
Expand Down
34 changes: 22 additions & 12 deletions src/metadata/a48.json
Original file line number Diff line number Diff line change
Expand Up @@ -1208,20 +1208,20 @@
"xmlName": "Workflow"
},
{
"directoryName": "alerts",
"directoryName": "workflowAlerts",
"inFolder": false,
"metaFile": false,
"suffix": "alert",
"suffix": "workflowAlert",
"parentXmlName": "Workflow",
"xmlName": "WorkflowAlert",
"xmlTag": "alerts",
"key": "fullName"
},
{
"directoryName": "fieldUpdates",
"directoryName": "workflowFieldUpdates",
"inFolder": false,
"metaFile": false,
"suffix": "fieldUpdate",
"suffix": "workflowFieldUpdate",
"parentXmlName": "Workflow",
"xmlName": "WorkflowFieldUpdate",
"xmlTag": "fieldUpdates",
Expand All @@ -1239,40 +1239,50 @@
"key": "fullName"
},
{
"directoryName": "outboundMessages",
"directoryName": "workflowOutboundMessages",
"inFolder": false,
"metaFile": false,
"suffix": "outboundMessage",
"suffix": "workflowOutboundMessage",
"parentXmlName": "Workflow",
"xmlName": "WorkflowOutboundMessage",
"xmlTag": "outboundMessages",
"key": "fullName"
},
{
"directoryName": "rules",
"directoryName": "workflowRules",
"inFolder": false,
"metaFile": false,
"suffix": "rule",
"suffix": "workflowRule",
"parentXmlName": "Workflow",
"xmlName": "WorkflowRule",
"xmlTag": "rules",
"key": "fullName"
},
{
"directoryName": "knowledgePublishes",
"directoryName": "workflowSends",
"inFolder": false,
"metaFile": false,
"suffix": "workflowSend",
"parentXmlName": "Workflow",
"xmlName": "WorkflowSend",
"xmlTag": "send",
"key": "fullName"
},
{
"directoryName": "workflowKnowledgePublishs",
"inFolder": false,
"metaFile": false,
"suffix": "knowledgePublishe",
"suffix": "workflowKnowledgePublishe",
"parentXmlName": "Workflow",
"xmlName": "WorkflowKnowledgePublish",
"xmlTag": "knowledgePublishes",
"key": "fullName"
},
{
"directoryName": "tasks",
"directoryName": "workflowTasks",
"inFolder": false,
"metaFile": false,
"suffix": "task",
"suffix": "workflowTask",
"parentXmlName": "Workflow",
"xmlName": "WorkflowTask",
"xmlTag": "tasks",
Expand Down
34 changes: 22 additions & 12 deletions src/metadata/v46.json
Original file line number Diff line number Diff line change
Expand Up @@ -976,20 +976,20 @@
"xmlName": "Workflow"
},
{
"directoryName": "alerts",
"directoryName": "workflowAlerts",
"inFolder": false,
"metaFile": false,
"suffix": "alert",
"suffix": "workflowAlert",
"parentXmlName": "Workflow",
"xmlName": "WorkflowAlert",
"xmlTag": "alerts",
"key": "fullName"
},
{
"directoryName": "fieldUpdates",
"directoryName": "workflowFieldUpdates",
"inFolder": false,
"metaFile": false,
"suffix": "fieldUpdate",
"suffix": "workflowFieldUpdate",
"parentXmlName": "Workflow",
"xmlName": "WorkflowFieldUpdate",
"xmlTag": "fieldUpdates",
Expand All @@ -1007,40 +1007,50 @@
"key": "fullName"
},
{
"directoryName": "outboundMessages",
"directoryName": "workflowOutboundMessages",
"inFolder": false,
"metaFile": false,
"suffix": "outboundMessage",
"suffix": "workflowOutboundMessage",
"parentXmlName": "Workflow",
"xmlName": "WorkflowOutboundMessage",
"xmlTag": "outboundMessages",
"key": "fullName"
},
{
"directoryName": "rules",
"directoryName": "workflowRules",
"inFolder": false,
"metaFile": false,
"suffix": "rule",
"suffix": "workflowRule",
"parentXmlName": "Workflow",
"xmlName": "WorkflowRule",
"xmlTag": "rules",
"key": "fullName"
},
{
"directoryName": "knowledgePublishes",
"directoryName": "workflowSends",
"inFolder": false,
"metaFile": false,
"suffix": "workflowSend",
"parentXmlName": "Workflow",
"xmlName": "WorkflowSend",
"xmlTag": "send",
"key": "fullName"
},
{
"directoryName": "workflowKnowledgePublishs",
"inFolder": false,
"metaFile": false,
"suffix": "knowledgePublishe",
"suffix": "workflowKnowledgePublishe",
"parentXmlName": "Workflow",
"xmlName": "WorkflowKnowledgePublish",
"xmlTag": "knowledgePublishes",
"key": "fullName"
},
{
"directoryName": "tasks",
"directoryName": "workflowTasks",
"inFolder": false,
"metaFile": false,
"suffix": "task",
"suffix": "workflowTask",
"parentXmlName": "Workflow",
"xmlName": "WorkflowTask",
"xmlTag": "tasks",
Expand Down
34 changes: 22 additions & 12 deletions src/metadata/v47.json
Original file line number Diff line number Diff line change
Expand Up @@ -1208,20 +1208,20 @@
"xmlName": "Workflow"
},
{
"directoryName": "alerts",
"directoryName": "workflowAlerts",
"inFolder": false,
"metaFile": false,
"suffix": "alert",
"suffix": "workflowAlert",
"parentXmlName": "Workflow",
"xmlName": "WorkflowAlert",
"xmlTag": "alerts",
"key": "fullName"
},
{
"directoryName": "fieldUpdates",
"directoryName": "workflowFieldUpdates",
"inFolder": false,
"metaFile": false,
"suffix": "fieldUpdate",
"suffix": "workflowFieldUpdate",
"parentXmlName": "Workflow",
"xmlName": "WorkflowFieldUpdate",
"xmlTag": "fieldUpdates",
Expand All @@ -1239,40 +1239,50 @@
"key": "fullName"
},
{
"directoryName": "outboundMessages",
"directoryName": "workflowOutboundMessages",
"inFolder": false,
"metaFile": false,
"suffix": "outboundMessage",
"suffix": "workflowOutboundMessage",
"parentXmlName": "Workflow",
"xmlName": "WorkflowOutboundMessage",
"xmlTag": "outboundMessages",
"key": "fullName"
},
{
"directoryName": "rules",
"directoryName": "workflowRules",
"inFolder": false,
"metaFile": false,
"suffix": "rule",
"suffix": "workflowRule",
"parentXmlName": "Workflow",
"xmlName": "WorkflowRule",
"xmlTag": "rules",
"key": "fullName"
},
{
"directoryName": "knowledgePublishes",
"directoryName": "workflowSends",
"inFolder": false,
"metaFile": false,
"suffix": "workflowSend",
"parentXmlName": "Workflow",
"xmlName": "WorkflowSend",
"xmlTag": "send",
"key": "fullName"
},
{
"directoryName": "workflowKnowledgePublishs",
"inFolder": false,
"metaFile": false,
"suffix": "knowledgePublishe",
"suffix": "workflowKnowledgePublishe",
"parentXmlName": "Workflow",
"xmlName": "WorkflowKnowledgePublish",
"xmlTag": "knowledgePublishes",
"key": "fullName"
},
{
"directoryName": "tasks",
"directoryName": "workflowTasks",
"inFolder": false,
"metaFile": false,
"suffix": "task",
"suffix": "workflowTask",
"parentXmlName": "Workflow",
"xmlName": "WorkflowTask",
"xmlTag": "tasks",
Expand Down
34 changes: 22 additions & 12 deletions src/metadata/v49.json
Original file line number Diff line number Diff line change
Expand Up @@ -1236,20 +1236,20 @@
"xmlName": "Workflow"
},
{
"directoryName": "alerts",
"directoryName": "workflowAlerts",
"inFolder": false,
"metaFile": false,
"suffix": "alert",
"suffix": "workflowAlert",
"parentXmlName": "Workflow",
"xmlName": "WorkflowAlert",
"xmlTag": "alerts",
"key": "fullName"
},
{
"directoryName": "fieldUpdates",
"directoryName": "workflowFieldUpdates",
"inFolder": false,
"metaFile": false,
"suffix": "fieldUpdate",
"suffix": "workflowFieldUpdate",
"parentXmlName": "Workflow",
"xmlName": "WorkflowFieldUpdate",
"xmlTag": "fieldUpdates",
Expand All @@ -1267,40 +1267,50 @@
"key": "fullName"
},
{
"directoryName": "outboundMessages",
"directoryName": "workflowOutboundMessages",
"inFolder": false,
"metaFile": false,
"suffix": "outboundMessage",
"suffix": "workflowOutboundMessage",
"parentXmlName": "Workflow",
"xmlName": "WorkflowOutboundMessage",
"xmlTag": "outboundMessages",
"key": "fullName"
},
{
"directoryName": "rules",
"directoryName": "workflowRules",
"inFolder": false,
"metaFile": false,
"suffix": "rule",
"suffix": "workflowRule",
"parentXmlName": "Workflow",
"xmlName": "WorkflowRule",
"xmlTag": "rules",
"key": "fullName"
},
{
"directoryName": "knowledgePublishes",
"directoryName": "workflowSends",
"inFolder": false,
"metaFile": false,
"suffix": "workflowSend",
"parentXmlName": "Workflow",
"xmlName": "WorkflowSend",
"xmlTag": "send",
"key": "fullName"
},
{
"directoryName": "workflowKnowledgePublishs",
"inFolder": false,
"metaFile": false,
"suffix": "knowledgePublishe",
"suffix": "workflowKnowledgePublishe",
"parentXmlName": "Workflow",
"xmlName": "WorkflowKnowledgePublish",
"xmlTag": "knowledgePublishes",
"key": "fullName"
},
{
"directoryName": "tasks",
"directoryName": "workflowTasks",
"inFolder": false,
"metaFile": false,
"suffix": "task",
"suffix": "workflowTask",
"parentXmlName": "Workflow",
"xmlName": "WorkflowTask",
"xmlTag": "tasks",
Expand Down
Loading

0 comments on commit 5e3ded6

Please sign in to comment.