I have a very particular problem. I have a task that, when invoked, performs in a LAH that is hidden on a task screen.
It's not your usual LAH code. The LogicalAttribute is present on the task screen, but hidden since the value of it does not matter.
The toLogical() LAH method pulls data from IM and submits it to an external system. That's it. It's just used as a trigger.
On the resulting Task screen, after handleSetSubject() completes, is nothing but a html section and message that indicates that the data submission either worked or failed. If it failed we throw an exception in the LAH which is shown to the user.
Because there is nothing on the resulting Task screen that needs to be shown or filled in, there is no Submit button - just a close button.
And because there is no actual task submission, the handleSubmission() BLTH is never triggered - so user attributes cannot be manipulated and no emails are sent.
---
I tried manipulating a user object in handleSetSubject() but it doesn't seem to allow it. There is no error, but no changes to the user happen when I try blthContext.getUser().setAttribute() on the selected user object.
Is there any way in this submission-less task, to modify user objects in code or to trigger emails to be sent?
I need a creative solution.