I am trying to understand how to pass Attachments from one Assign Task to another.
On the submission, I can see that I can add a Variable Array of Documents. That works, all is good.
However, on the subsequent Assign Task, in the pre-populate section, I do not see the ability to assign a Variable Array to the prepopulation.
Does this mean that we must write the document Array to the payload?
Actually, that wouldn't work because we can only attach one document to the Prepopulate in Assign Task.
If somebody could explain this to me, it would be great.
It looks like this is getting attachments from an attach button on the actual adaptive form.
Maybe you already know this but I am talking about the attachment feature in the inbox task assignment. Do I have to write code to make this useful?
Yes, in file attachment component's properties, you may enable "Allow multiple files" option.
You switched from Assign Task operation to Adaptive form component. I am asking if I can attach more than one documents to a workflow in one step and then, see them in a se seque y step - not using the attach file component in an adaptive form.
as per my previous response, you can't assign a document array variable as the attachment in assign task operation, as it accepts the attachments from the payload only. So, you better use a file attachment component in the form to achieve this use case.
I understand that I can assign an Array on the Submission. Got it.
How do I assign multiple attachments from the relative to payload?
this is my workflow:
I am attaching 2 files in my AF, and I am submitting and invoking WF above.
Assigntask 1 props:
Assigntask 2 props:
After completing both the assign tasks, I am able to pass and submit both the attachments and store them at the payload path, as shown below:
It's not working like LiveCycle workflow attachments. Can attachments to a workflow be copied from one task to another task?
Unfortunately, we executed a simplified version of your example
Prepopulate - blank.
Submission - Relative to Payload, attachments
Prepopulate - Relative to Payload, attachments
We received AssignTask1 and attached two documents (from the left side of the workflow task, not with a fileUpload button in the form) then, clicked Submit.
CRX payload directory did NOT create a directory called attachments, nor a fileUpload directory as you show in your screenshot.
Please let me know what I'm doing wrong. Again, we are NOT using file upload buttons in the Adaptive form. We are merely trying to use the native attach in a workflow task.
Can you please share the screenshots of the AssignTasks props as I have shared above?
Why your AssignTask1 prepopulate for attachment is blank? That's not in my case.
Prepopulate - blank.
It is blank because it is the first task. Nobody in front. They will be the first people to attach files.
AttachTask properties below
Are you invoking this workflow on AF submission?
If yes, then you need to attach the files in the AF itself before invoking the workflow.
We are testing by invoking manually and pointing to a sample payload directory.
We will try to invoke using an AF however, we have workflows that are invoked by Java and assign tasks. We need attachments to work there too.
What is the requirement? attachmenta directory needs to exist beforehand?
Ok. Ok. So, I don't even need to configure prepopulate or submitted. I just need to go to Advanced and configure as shown? I'll test it out.