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

I cannot create attachments to process instance using java API

    XMLWordPrintable

Details

    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

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce