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

I cannot create attachments to process instance using java API

    XMLWordPrintable

    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

        mgm-controller-panel

        This is the controller panel for Smart Panels app

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned 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:

                    Salesforce