Serverless工作流 有一个定时触发的workflow,想渲染出data字段,这应该怎么使用?

Serverless工作流 有一个定时触发的workflow,想渲染出data字段,但是一直渲染不出来。 这个应该怎么使用呢。Type: StateMachine
Name: MyFlow-627e7306-017f-4d7c-b783-0afa774889dd
SpecVersion: v1
StartAt: Hello World
States:

  • Type: Pass
    Name: Hello World
    Next: PutEvents
  • Type: Task
    Name: PutEvents
    Action: EventBridge:PutEvents
    TaskMode: RequestComplete
    Parameters:
    eventBusName: trigger-workflow
    data:
    name: $Context.Execution.Input.id
    number: $Context.Execution.Input.data.UserData.number
    
    source: my-process-data
    subject: argo
    type: workflow
    End: true

展开
收起
嘟嘟嘟嘟嘟嘟 2024-07-31 23:32:12 59 发布于海南 分享
分享
版权
举报
1 条回答
写回答
取消 提交回答
  • Name: MyFlow-627e7306-017f-4d7c-b783-0afa774889dd
    Type: StateMachine
    SpecVersion: v1
    StartAt: Hello World
    States:

    • Type: Pass
      Name: Hello World
      Next: PutEvents
    • Type: Task
      Name: PutEvents
      Action: EventBridge:PutEvents
      TaskMode: RequestComplete
      Parameters:
      eventBusName: trigger-workflow
      data:
      name.$: $Context.Execution.Input.id
      number.$: $Context.Execution.Input.data.UserData.number
      
      source: my-process-data
      subject: argo
      type: workflow
      End: true
      当前流程设计为了在使用表达式的时候, 要求key后面要跟.$, 来区分右侧是表达式,还是常量。
      此回答整理自钉群“CloudFlow 云工作流官网客户群”
    2024-08-01 09:01:15 举报
    赞同 8 评论

    评论

    全部评论 (0)

    登录后可评论

快速交付实现商业价值。

还有其他疑问?
咨询AI助理