Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-6579

I cannot create attachments to process instance using java API

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.6.0, 7.6.0-alpha5, 7.5.6
    • Component/s: engine
    • Labels:

      Description

      Problem Description:
      When I try to create an attachement for a process instance and do not provide a task id, then an exception is thrown.

      Expected behavior:
      I can create an attachment for a process instance without a task id.

      Hint

      org.camunda.bpm.engine.impl.cmd.CreateAttachmentCmd#execute

      ensureNotNull("taskId", taskId);
      

      and the line before the last line

      commandContext.getOperationLogManager().logAttachmentOperation(UserOperationLogEntry.OPERATION_TYPE_ADD_ATTACHMENT, task, propertyChange);
      

      are only places where taskId is forced

        Issue Links

          Activity

          Hide
          askar.akhmerov Askar Akhmerov added a comment -

          Have to load information on PI from the database and provide it in OP log if task id is not defined

          Show
          askar.akhmerov Askar Akhmerov added a comment - Have to load information on PI from the database and provide it in OP log if task id is not defined

            People

            • Assignee:
              Unassigned
              Reporter:
              Stephan.Pelikan@wdw-elab.de Stephan Pelikan
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development