Hi Norberto,
There are some fields in the TaskInfo object which is not a good idea/not possible to modify. For some of them you will get an exception. For others nothing will happen but the value will not get updated.
The values from the TaskInfo that are read-only (can be modified only by the Task Engine) are the following:
- createdDate
- lastModifiedDate
- lastAcceptedDate
- createdBy
- lastModifiedBy
- lastAcceptedBy
- auditContext
- processInstanceId
- processModelId
- processsIteration
- processModelVersion
- stepId
- stepIteration
- taskTypeID
- taskUrl
- collaborationProcessID
- collaborationStepID
You should not worry about setting this fields. The Task Engine will take care of this.
Maybe there is another way to achieve your desired outcome without having to set the lastModifiedBy field.
Best regards,
Vlad Turian
#webMethods#Integration-Server-and-ESB