How to use the @aws-cdk/aws-stepfunctions.Condition.or function in @aws-cdk/aws-stepfunctions

To help you get started, we’ve selected a few @aws-cdk/aws-stepfunctions examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fourTheorem / slic-starter / cicd / lib / stages / build-modules-stage.ts View on Github external
{
          codeBuildProjectArn: this.buildModuleProjects[moduleName].projectArn,
          checkCodeBuildFunction: props.checkCodeBuildFunction,
          runCodeBuildFunction: props.runCodeBuildFunction,
          sourceLocationPath: '$.sourceLocation'
        }
      )

      // TODO - Fix this
      const changesPath = true || stageNo === 1 ? '$' : `$.[${moduleIndex}]`
      const ifChangedChoice = new Choice(
        this,
        `${moduleName} changed? ${stageName} build`
      )
        .when(
          Condition.or(
            Condition.booleanEquals(
              `${changesPath}.changes.${moduleName}`,
              true
            ),
            Condition.booleanEquals(`${changesPath}.changes.all_modules`, true)
          ),
          buildJob.task
        )
        .otherwise(new Succeed(this, `Skip ${stageName} ${moduleName} build`))

      this.stageState.branch(ifChangedChoice)
    })
  }