lightning-flow-scanner-core
Advanced tools
Comparing version 4.7.0 to 4.7.1
@@ -17,2 +17,3 @@ import { FlowElement } from "./FlowElement"; | ||
startReference: any; | ||
triggerOrder?: number; | ||
private flowVariables; | ||
@@ -19,0 +20,0 @@ private flowResources; |
@@ -99,2 +99,3 @@ "use strict"; | ||
this.type = this.xmldata.processType; | ||
this.triggerOrder = this.xmldata.triggerOrder; | ||
const allNodes = []; | ||
@@ -101,0 +102,0 @@ for (const nodeType in this.xmldata) { |
export declare class FlowType { | ||
static autolaunchedType: string; | ||
static backEndTypes: string[]; | ||
@@ -3,0 +4,0 @@ static processBuilder: string[]; |
"use strict"; | ||
var _a; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -7,4 +8,6 @@ exports.FlowType = void 0; | ||
exports.FlowType = FlowType; | ||
_a = FlowType; | ||
FlowType.autolaunchedType = "AutoLaunchedFlow"; | ||
FlowType.backEndTypes = [ | ||
"AutoLaunchedFlow", | ||
_a.autolaunchedType, | ||
"CustomEvent", | ||
@@ -11,0 +14,0 @@ "InvocableProcess", |
@@ -53,6 +53,8 @@ "use strict"; | ||
if (!isBeforeSaveType || !isQualifiedTriggerTypes) { | ||
return new core.RuleResult(this, []); | ||
return new core.RuleResult(this, results); | ||
} | ||
const resultDetails = []; | ||
const potentialElements = (_c = flow.elements) === null || _c === void 0 ? void 0 : _c.filter((node) => node.subtype === "recordUpdates"); | ||
if (potentialElements == null || typeof potentialElements[Symbol.iterator] !== "function") { | ||
return new core.RuleResult(this, results); | ||
} | ||
for (const node of potentialElements) { | ||
@@ -62,8 +64,8 @@ if (typeof node.element === "object" && | ||
node.element.inputReference === "$Record") { | ||
resultDetails.push(new core.ResultDetails(node)); | ||
results.push(new core.ResultDetails(node)); | ||
} | ||
} | ||
return new core.RuleResult(this, resultDetails); | ||
return new core.RuleResult(this, results); | ||
} | ||
} | ||
exports.SameRecordFieldUpdates = SameRecordFieldUpdates; |
{ | ||
"name": "lightning-flow-scanner-core", | ||
"version": "4.7.0", | ||
"version": "4.7.1", | ||
"main": "out/index.js", | ||
@@ -5,0 +5,0 @@ "types": "index.d.ts", |
@@ -34,2 +34,3 @@ [![Lightning Flow Scanner Banner](./src/media/bannerslim.png)](https://github.com/Lightning-Flow-Scanner) | ||
| **Same Record Field Updates** ([`SameRecordFieldUpdates`](https://github.com/Lightning-Flow-Scanner/lightning-flow-scanner-core/tree/master/src/main/rules/SameRecordFieldUpdates.ts)) | Much like triggers, before contexts can update the same record by accessing the trigger variables `$Record` without needing to invoke a DML. | | ||
| **Trigger Order** ([`TriggerOrder`](https://github.com/Lightning-Flow-Scanner/lightning-flow-scanner-core/tree/master/src/main/rules/TriggerOrder.ts)) | Guarantee your flow execution order with the Trigger Order property introduced in Spring '22 | | ||
@@ -36,0 +37,0 @@ ## Core Functions |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
488838
110
14688
151