Following my earlier posts this week, I have hit another challenge.
Scenario: Hiring new staff
Participants: manager, employee, HR-staff (not described in this post)
I have a form that is filled, signed and submitted by a manager (outside Workspace), this form is then sent to the new employee (also outside Workspace) for signing.
Now this is done by having a temp user and a special process that sends out an email to the employee with a re-rendered form. This of course has no signature, so I must somehow get hold of the original document and send this instead.
My problem is now that I am not really sure how I can do this. Can anyone point me in the right direction, maybe there is a smoother way of achieving this?
Also I have to handle the problem of being able to submit the signed document from the employee again (it has already been submitted once by the manager).
If you need more information for understanding the scenario, please poke me and I'll elaborate 🙂
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?