code: private void setSharedAttribute(Task task) {
      setSharedAttribute(BRIDGE_TASK_ID, task.getId());
      setSharedAttribute(BRIDGE_PROCESS_DEFINITION_ID, null);
    }
docs: Do this as a workaround till IPC works correctly see
  http://www.liferay.com/
  de/community/forums/-/message_boards/message/27295776