Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
Hello,
I'ld like to make the "comments" field mandatory in an assigned activity.
But not in all cases so I cannot just custom the basic jsp. It is just for certain activities and when the user rejects the activity. If he chooses "comlete" he doesn't have to put a comment.
I achieved it by adding a writtable "comment2" variable and some validation on the "reject" transition.
But it is misleading for the user to have at once the field "comment2" and the original "comments" field.
Have you an idea how to implement this requirement ?
thank you.
Solved! Go to Solution.
Do something like the following......
For 9.1 (idk what the property looks like in 8/10)
in wt.properties,
wt.services.service.10040=com.ptc.netmarkets.work.NmWorkItemService/mypackage.MyNmWorkItemService
Try to give your activity a unique name (no other templates use an activity with this name) or come up with your own way to distinguish the workitem.
Create your NmWorkItemSerivce class:
Do something like the following......
For 9.1 (idk what the property looks like in 8/10)
in wt.properties,
wt.services.service.10040=com.ptc.netmarkets.work.NmWorkItemService/mypackage.MyNmWorkItemService
Try to give your activity a unique name (no other templates use an activity with this name) or come up with your own way to distinguish the workitem.
Create your NmWorkItemSerivce class:
It just worked fine. Thank you !
With this solution, we've got access to NmCommandBean object and then to a lot of things.