← Voltar para Flows

Artist Profile Management Flow

Name
Artist Profile Management Flow
Description
Atualização do perfil do artista e manutenção de portfólio (add/remove).
Validated
Not Validated

Steps

  1. 1
    updateArtistProfile(Artist Service)
    Input Mapping
    userId: "{{trigger.userId}}"
    updates: "{{trigger.updates}}"
    artistId: "{{trigger.artistId}}"
    authToken: "{{trigger.authToken}}"
    Output Handlers
    Output KeyNext StepBranch To FlowMerge To Context
    successStep 2: addPortfolioPieceYes
  2. 2
    addPortfolioPiece(Artist Service)
    Input Mapping
    tags: "$trigger.newPortfolio.tags"
    style: "$trigger.newPortfolio.style"
    images: "$trigger.newPortfolio.images"
    userId: "$trigger.userId"
    artistId: "$trigger.artistId"
    bodyPart: "$trigger.newPortfolio.bodyPart"
    authToken: "$trigger.authToken"
    description: "$trigger.newPortfolio.description"
    idempotencyKey: "portfolio_add:$trigger.artistId:$trigger.eventId"
    Output Handlers
    Output KeyNext StepBranch To FlowMerge To Context
    successStep 3: removePortfolioPieceYes
  3. 3
    removePortfolioPiece(Artist Service)
    Input Mapping
    userId: "$trigger.userId"
    pieceId: "$trigger.removePortfolio.pieceId"
    artistId: "$trigger.artistId"
    authToken: "$trigger.authToken"
    idempotencyKey: "portfolio_remove:$trigger.artistId:$trigger.removePortfolio.pieceId:$trigger.eventId"
    Output Handlers
    Output KeyNext StepBranch To FlowMerge To Context
    successStep 4: sendNotificationYes
  4. 4
    sendNotification(Notification Service)
    Input Mapping
    data: "$step1.data"
    channel: "in_app"
    priority: "low"
    template: "artist_profile_updated"
    recipientId: "$trigger.userId"
    correlationId: "$trigger.correlationId"
    idempotencyKey: "artist_profile_updated:$trigger.artistId:$trigger.eventId"
    Output Handlers
    Output KeyNext StepBranch To FlowMerge To Context
    successYes