Skip to content

Commit

Permalink
feat: add flow action and knowledge publish inFile Workflow metadata (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
scolladon authored Dec 16, 2022
1 parent 2bc5798 commit 24a32f0
Show file tree
Hide file tree
Showing 12 changed files with 202 additions and 5 deletions.
31 changes: 26 additions & 5 deletions __tests__/integration/domain.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,37 @@ const testContext = [
[
'workflows',
'force-app/main/default/workflows/Account.workflow-meta.xml',
new Set(['Account.Alert']),
new Set(['Account.Test']),
'workflows.alerts',
`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${EOL}<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">${EOL}<alerts>${EOL}<fullName>Alert</fullName>${EOL}</alerts>${EOL}</Workflow>`,
`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${EOL}<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">${EOL}<alerts>${EOL}<fullName>Test</fullName>${EOL}</alerts>${EOL}</Workflow>`,
],
[
'workflows',
'force-app/main/default/workflows/Test/Account.workflow-meta.xml',
new Set(['Account.Alert']),
'workflows.alerts',
`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${EOL}<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">${EOL}<alerts>${EOL}<fullName>Alert</fullName>${EOL}</alerts>${EOL}</Workflow>`,
new Set(['Account.Test']),
'workflows.fieldUpdates',
`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${EOL}<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">${EOL}<fieldUpdates>${EOL}<fullName>Test</fullName>${EOL}</fieldUpdates>${EOL}</Workflow>`,
],
[
'workflows',
'force-app/main/default/workflows/Test/Account.workflow-meta.xml',
new Set(['Account.Test']),
'workflows.outboundMessages',
`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${EOL}<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">${EOL}<outboundMessages>${EOL}<fullName>Test</fullName>${EOL}</outboundMessages>${EOL}</Workflow>`,
],
[
'workflows',
'force-app/main/default/workflows/Test/Account.workflow-meta.xml',
new Set(['Account.Test']),
'workflows.rules',
`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${EOL}<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">${EOL}<rules>${EOL}<fullName>Test</fullName>${EOL}</rules>${EOL}</Workflow>`,
],
[
'workflows',
'force-app/main/default/workflows/Test/Account.workflow-meta.xml',
new Set(['Account.Test']),
'workflows.flowActions',
`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${EOL}<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">${EOL}<flowActions>${EOL}<fullName>Test</fullName>${EOL}</flowActions>${EOL}</Workflow>`,
],
[
'labels',
Expand Down
16 changes: 16 additions & 0 deletions src/metadata/a48.json
Original file line number Diff line number Diff line change
Expand Up @@ -1290,6 +1290,22 @@
"xmlName": "WorkflowRule",
"xmlTag": "rules"
},
{
"directoryName": "workflows.flowActions",
"inFolder": false,
"metaFile": false,
"parentXmlName": "Workflow",
"xmlName": "WorkflowFlowAction",
"xmlTag": "flowActions"
},
{
"directoryName": "workflows.knowledgePublishes",
"inFolder": false,
"metaFile": false,
"parentXmlName": "Workflow",
"xmlName": "WorkflowKnowledgePublish",
"xmlTag": "knowledgePublishes"
},
{
"directoryName": "sharingRules.sharingCriteriaRules",
"inFolder": false,
Expand Down
16 changes: 16 additions & 0 deletions src/metadata/v46.json
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,22 @@
"xmlName": "WorkflowRule",
"xmlTag": "rules"
},
{
"directoryName": "workflows.flowActions",
"inFolder": false,
"metaFile": false,
"parentXmlName": "Workflow",
"xmlName": "WorkflowFlowAction",
"xmlTag": "flowActions"
},
{
"directoryName": "workflows.knowledgePublishes",
"inFolder": false,
"metaFile": false,
"parentXmlName": "Workflow",
"xmlName": "WorkflowKnowledgePublish",
"xmlTag": "knowledgePublishes"
},
{
"directoryName": "sharingRules.sharingCriteriaRules",
"inFolder": false,
Expand Down
16 changes: 16 additions & 0 deletions src/metadata/v47.json
Original file line number Diff line number Diff line change
Expand Up @@ -1269,6 +1269,22 @@
"xmlName": "WorkflowRule",
"xmlTag": "rules"
},
{
"directoryName": "workflows.flowActions",
"inFolder": false,
"metaFile": false,
"parentXmlName": "Workflow",
"xmlName": "WorkflowFlowAction",
"xmlTag": "flowActions"
},
{
"directoryName": "workflows.knowledgePublishes",
"inFolder": false,
"metaFile": false,
"parentXmlName": "Workflow",
"xmlName": "WorkflowKnowledgePublish",
"xmlTag": "knowledgePublishes"
},
{
"directoryName": "sharingRules.sharingCriteriaRules",
"inFolder": false,
Expand Down
16 changes: 16 additions & 0 deletions src/metadata/v49.json
Original file line number Diff line number Diff line change
Expand Up @@ -1283,6 +1283,22 @@
"xmlName": "WorkflowRule",
"xmlTag": "rules"
},
{
"directoryName": "workflows.flowActions",
"inFolder": false,
"metaFile": false,
"parentXmlName": "Workflow",
"xmlName": "WorkflowFlowAction",
"xmlTag": "flowActions"
},
{
"directoryName": "workflows.knowledgePublishes",
"inFolder": false,
"metaFile": false,
"parentXmlName": "Workflow",
"xmlName": "WorkflowKnowledgePublish",
"xmlTag": "knowledgePublishes"
},
{
"directoryName": "sharingRules.sharingCriteriaRules",
"inFolder": false,
Expand Down
16 changes: 16 additions & 0 deletions src/metadata/v50.json
Original file line number Diff line number Diff line change
Expand Up @@ -1283,6 +1283,22 @@
"xmlName": "WorkflowRule",
"xmlTag": "rules"
},
{
"directoryName": "workflows.flowActions",
"inFolder": false,
"metaFile": false,
"parentXmlName": "Workflow",
"xmlName": "WorkflowFlowAction",
"xmlTag": "flowActions"
},
{
"directoryName": "workflows.knowledgePublishes",
"inFolder": false,
"metaFile": false,
"parentXmlName": "Workflow",
"xmlName": "WorkflowKnowledgePublish",
"xmlTag": "knowledgePublishes"
},
{
"directoryName": "sharingRules.sharingCriteriaRules",
"inFolder": false,
Expand Down
16 changes: 16 additions & 0 deletions src/metadata/v51.json
Original file line number Diff line number Diff line change
Expand Up @@ -1339,6 +1339,22 @@
"xmlName": "WorkflowRule",
"xmlTag": "rules"
},
{
"directoryName": "workflows.flowActions",
"inFolder": false,
"metaFile": false,
"parentXmlName": "Workflow",
"xmlName": "WorkflowFlowAction",
"xmlTag": "flowActions"
},
{
"directoryName": "workflows.knowledgePublishes",
"inFolder": false,
"metaFile": false,
"parentXmlName": "Workflow",
"xmlName": "WorkflowKnowledgePublish",
"xmlTag": "knowledgePublishes"
},
{
"directoryName": "sharingRules.sharingCriteriaRules",
"inFolder": false,
Expand Down
16 changes: 16 additions & 0 deletions src/metadata/v52.json
Original file line number Diff line number Diff line change
Expand Up @@ -1346,6 +1346,22 @@
"xmlName": "WorkflowRule",
"xmlTag": "rules"
},
{
"directoryName": "workflows.flowActions",
"inFolder": false,
"metaFile": false,
"parentXmlName": "Workflow",
"xmlName": "WorkflowFlowAction",
"xmlTag": "flowActions"
},
{
"directoryName": "workflows.knowledgePublishes",
"inFolder": false,
"metaFile": false,
"parentXmlName": "Workflow",
"xmlName": "WorkflowKnowledgePublish",
"xmlTag": "knowledgePublishes"
},
{
"directoryName": "sharingRules.sharingCriteriaRules",
"inFolder": false,
Expand Down
16 changes: 16 additions & 0 deletions src/metadata/v53.json
Original file line number Diff line number Diff line change
Expand Up @@ -1346,6 +1346,22 @@
"xmlName": "WorkflowRule",
"xmlTag": "rules"
},
{
"directoryName": "workflows.flowActions",
"inFolder": false,
"metaFile": false,
"parentXmlName": "Workflow",
"xmlName": "WorkflowFlowAction",
"xmlTag": "flowActions"
},
{
"directoryName": "workflows.knowledgePublishes",
"inFolder": false,
"metaFile": false,
"parentXmlName": "Workflow",
"xmlName": "WorkflowKnowledgePublish",
"xmlTag": "knowledgePublishes"
},
{
"directoryName": "sharingRules.sharingCriteriaRules",
"inFolder": false,
Expand Down
16 changes: 16 additions & 0 deletions src/metadata/v54.json
Original file line number Diff line number Diff line change
Expand Up @@ -1346,6 +1346,22 @@
"xmlName": "WorkflowRule",
"xmlTag": "rules"
},
{
"directoryName": "workflows.flowActions",
"inFolder": false,
"metaFile": false,
"parentXmlName": "Workflow",
"xmlName": "WorkflowFlowAction",
"xmlTag": "flowActions"
},
{
"directoryName": "workflows.knowledgePublishes",
"inFolder": false,
"metaFile": false,
"parentXmlName": "Workflow",
"xmlName": "WorkflowKnowledgePublish",
"xmlTag": "knowledgePublishes"
},
{
"directoryName": "sharingRules.sharingCriteriaRules",
"inFolder": false,
Expand Down
16 changes: 16 additions & 0 deletions src/metadata/v55.json
Original file line number Diff line number Diff line change
Expand Up @@ -1360,6 +1360,22 @@
"xmlName": "WorkflowRule",
"xmlTag": "rules"
},
{
"directoryName": "workflows.flowActions",
"inFolder": false,
"metaFile": false,
"parentXmlName": "Workflow",
"xmlName": "WorkflowFlowAction",
"xmlTag": "flowActions"
},
{
"directoryName": "workflows.knowledgePublishes",
"inFolder": false,
"metaFile": false,
"parentXmlName": "Workflow",
"xmlName": "WorkflowKnowledgePublish",
"xmlTag": "knowledgePublishes"
},
{
"directoryName": "sharingRules.sharingCriteriaRules",
"inFolder": false,
Expand Down
16 changes: 16 additions & 0 deletions src/metadata/v56.json
Original file line number Diff line number Diff line change
Expand Up @@ -1381,6 +1381,22 @@
"xmlName": "WorkflowRule",
"xmlTag": "rules"
},
{
"directoryName": "workflows.flowActions",
"inFolder": false,
"metaFile": false,
"parentXmlName": "Workflow",
"xmlName": "WorkflowFlowAction",
"xmlTag": "flowActions"
},
{
"directoryName": "workflows.knowledgePublishes",
"inFolder": false,
"metaFile": false,
"parentXmlName": "Workflow",
"xmlName": "WorkflowKnowledgePublish",
"xmlTag": "knowledgePublishes"
},
{
"directoryName": "sharingRules.sharingCriteriaRules",
"inFolder": false,
Expand Down

0 comments on commit 24a32f0

Please sign in to comment.