What You May Need to Know About Encoding an Attachment
To enable text files to be attached to a human task, you must set a flag that describes whether the content of text attachments is encoded. This flag is named isContentEncoded
.You can set this flag by customizing the BPEL code in any Human Workflow sample that includes a human task. To do this customization, in the .bpel
file in the sample, enter the following copy rule in the BPEL assign activity code:
<copy> <from>true()</from> <to>$initiateTaskInput.payload/task:task/task:attachment/task:isContentEncoded </to> </copy>
Once you have entered this copy rule, you can either save the file and continue designing the BPEL process or, if you have finished designing, you can deploy the process.