This content has been marked as final. Show 3 replies
I'm note quite sure I understand the scenario.
The manager send a form to an employee. Is this using an orchestration to render a PDF and send a email?
The employee receives the PDF signs it and send it back to, I guess HR. Is HR also outside of workspace?
You could create a process with an email endpoint that extract the attachment (signed PDF) and send it to HR or do what ever you want with it.
I'm not sure where you problem is.
Hi again Jasmin,
Sorry for being so inprecise...
First the manager submits a form to LC which he/she has signed, The process is kicked of by a email endpoint, so far so good.
Next I have created a temp user and 2 processes that handle the event "Task Created" (which should send out the original document for signing at the hand of the employee). Also I have created a customised Complete Task process with an email endpoint that handles the form when it gets back from the employee. From here the HR-Staff is doing all the work inside Workspace.
My problem are two fold:
1. In my Task created process I need to get my hands on the original document for the employee. I guess I could store it as a BLOB in a DB with a process_instance_id as the index, and look it up in my Task Created process, but I am not sure whether I like this solution.
2. I somehow need to first sign and submit the form at the manager, and then again sign and submit at the employee. I am not sure how to handle doing to submits on the same form without having two different buttons.
I hope this helps on the understanding.
Happy holidays and a merry Christmas and a happy new year to you.
What I've done in the past is to create a custom component (called Task Util) that gives you back the data for a particular task. In you scenario, the tmp user would receives a new task which contains the form. The data for that task is the actual PDF.
The Task Complete event would give you the task id as part of the parameter it sends, so you could use that and get the data associated with this task.
You can change the target url of the submit button through script. I'm not sure if that would break your signature though. Are you signing the whole form or just certain fields?