commerce_amws-8.x-1.x-dev/modules/feed/commerce_amws_feed.workflows.yml

modules/feed/commerce_amws_feed.workflows.yml
commerce_amws_feed_operation:
  id: commerce_amws_feed_operation
  group: entity_sync_operation
  label: 'AMWS Feed'
  run_transition: submit
  # See https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference#processingstatus.
  states:
    # Created in the system but not processed by Entity Synchronization yet.
    created:
      label: Created
    # Indicates that the operation was cancelled within Drupal before submitting the Feed.
    submission_cancelled:
      label: 'Submission cancelled'
    # Submission is in progress on the Drupal side i.e. the export operation is running.
    submitting:
      label: Submitting
    # This is the 'IN_QUEUE' status in the Amazon MWS Feeds API.
    submission_completed:
      label: 'Feed submission completed'
    # Submission failed.
    submission_failed:
      label: 'Submission failed'
    # This is the 'CANCELLED' status in the Amazon MWS Feeds API.
    feed_cancelled:
      label: 'Feed processing cancelled'
    # This is the 'IN_PROGRESS' status in the Amazon MWS Feeds API.
    feed_in_progress:
      label: 'Feed processing in progress'
    # This is the 'DONE' status in the Amazon MWS Feeds API.
    feed_processed:
      label: 'Feed processing completed'
    # This is the 'FATAL' status in the Amazon MWS Feeds API.
    feed_failed:
      label: 'Feed processing failed'
    # Indicates that the operation has been disconnected from the feed after its
    # submission; further updates cannot be fetched. This can happen, for
    # example, if the entity that the operation relates to gets deleted, or if
    # the feed ID does not get properly stored or it gets deleted. In that case,
    # configurator plugins that fetch the updates can move the operation to this
    # state so that they don't get stack requesting updates on every run of the
    # update manager.
    disconnected:
      label: 'Feed disconnected'
  # After submitting we can move to multiple states because the operation may
  # move through multiple states in Amazon MWS processing before we fetch an
  # update on its status.
  transitions:
    cancel_submission:
      label: 'Cancel submission'
      from: [created]
      to: submission_cancelled
    submit:
      label: Submit
      from: [created]
      to: submitting
    fail_submission:
      label: 'Fail submission'
      from: [submitting]
      to: submission_failed
    complete_submission:
      label: 'Complete submission'
      from: [submitting]
      to: submission_completed
    cancel_feed:
      label: 'Cancel feed'
      from: [submission_completed]
      to: feed_cancelled
    process_feed:
      label: 'Process feed'
      from: [submission_completed]
      to: feed_in_progress
    complete_feed:
      label: 'Complete feed processing'
      from: [submission_completed, feed_in_progress]
      to: feed_processed
    fail_feed:
      label: 'Fail feed processing'
      from: [submission_completed, feed_in_progress]
      to: feed_failed
    disconnect:
      label: 'Disconnect'
      from: [submission_completed, feed_in_progress]
      to: disconnected

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc