in cdk/lib/partners/other.ts [22:43]
private createWorkflow(): Choice {
const OtherPartner = {
NoAction: new Pass(this, `${this.providerIdentifier}-NotEntitled`, {
result: Result.fromObject({
Provider: "Other",
Status: "IGNORED"
})
}),
Images: Util.makeLambdaInvokeTaskFromJSFunction(this, "provider-other", "ProcessImageOther", `${this.providerIdentifier}-Image`),
Metadata: Util.makeLambdaInvokeTaskFromJSFunction(this, "provider-other", "ProcessMetadataOther", `${this.providerIdentifier}-Metadata`),
Video: Util.makeLambdaInvokeTaskFromJSFunction(this, "provider-other", "ProcessVideoOther", `${this.providerIdentifier}-Video`),
Verification: Util.makeLambdaInvokeTaskFromJSFunction(this, "provider-other", "PostprocessOther", `${this.providerIdentifier}-Postprocess`)
};
const ProviderOtherParallelProcessing = new Parallel(this, `${this.providerIdentifier}-ParallelSteps`)
.branch(OtherPartner.Images, OtherPartner.Metadata, OtherPartner.Video)
.next(OtherPartner.Verification);
return new Choice(this, this.providerIdentifier)
.when(this.isProviderEnabled(), ProviderOtherParallelProcessing)
.otherwise(OtherPartner.NoAction);
}