OSGI Workflow attachment list on Assign Task | Community
Skip to main content
crich2784
Level 6
October 7, 2021

OSGI Workflow attachment list on Assign Task

  • October 7, 2021
  • 2 replies
  • 5901 views

 

Hello,

 

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.

 

Thanks,  

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Level 8
October 8, 2021

I will send you something soon

crich2784
crich2784Author
Level 6
October 8, 2021

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?

Mayank_Tiwari
Adobe Employee
Adobe Employee
October 8, 2021

@crich2784 attachment should be the part of payload, then only it can be passed to Assign Task operation, as shown below:

 

 

crich2784
crich2784Author
Level 6
October 8, 2021

Can you attach more than 1 document in prepopulation?

Mayank_Tiwari
Adobe Employee
Adobe Employee
October 9, 2021

@mayank_tiwari 

 

Unfortunately, we executed a simplified version of your example

AssignTask1

Prepopulate - blank.

Submission - Relative to Payload, attachments

 

AssignTask2

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.

 

AssignTask1

Prepopulate - blank.