Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Commit

Permalink
fix: add necessary labels to requested ControlActions
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristiaanScheermeijer committed Jan 14, 2020
1 parent 2acd84b commit d5fbe57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/RequestControlActionCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class RequestControlActionCommand {
`MATCH (\`entryPoint\`:\`EntryPoint\` {\`identifier\`:"${requestInput.entryPointIdentifier}"})${this.queryHelper.generateRelationClause('EntryPoint', 'potentialAction')}(\`potentialControlAction\`:\`ControlAction\` {\`identifier\`:"${requestInput.potentialActionIdentifier}"})`,
propertySelections ? `, ${propertySelections}` : '',
`WITH \`entryPoint\`, \`potentialControlAction\`${nodeAliasesClause}`,
`CREATE (\`entryPoint\`)${this.queryHelper.generateRelationClause('ControlAction', 'target', null, true)}(\`controlAction\`:\`ControlAction\` {${this._generateControlActionPropertyClause(template.potentialAction)}})${this.queryHelper.generateRelationClause('ControlAction', 'wasDerivedFrom')}(\`potentialControlAction\`)`,
`CREATE (\`entryPoint\`)${this.queryHelper.generateRelationClause('ControlAction', 'target', null, true)}(\`controlAction\`:\`ControlAction\`:\`ActionInterface\`:\`ProvenanceActivityInterface\`:\`ProvenanceEntityInterface\`:\`ThingInterface\` {${this._generateControlActionPropertyClause(template.potentialAction)}})${this.queryHelper.generateRelationClause('ControlAction', 'wasDerivedFrom')}(\`potentialControlAction\`)`,
`WITH \`entryPoint\`, \`potentialControlAction\`, \`controlAction\`${nodeAliasesClause}`,
this._generateCreatePropertyValuesClause(template, requestInput),
this._generateNodeValueRelationsClause(requestInput.propertyObject),
Expand Down

0 comments on commit d5fbe57

Please sign in to comment.