Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-2325

Delete operation artifact only when needed

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • None
    • None

      Problem: In the Update Operation API, the workflow artifact is always deleted. It is expecting that the POST artifact will always be called after

      Scenario: User creates operation with external artifact, uploading a file. Later, a user updates the operation without uploading a new artifact. The artifact is deleted even though the user did not want to change the artifact.

      Solution: For PUT Operation call for an operation with external workflow, use "workflowId" property of operation model to determine whether a delete will happen. This flag should be made true if the user uploaded a new artifact for the operation, in which case a new POST artifact will occur, or if the user removed the artifact, in which case the delete will happen but no new artifact will be pushed.

            arielk arielk
            arielk arielk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: