re-hire resource

 3 Replies
 2 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Srini Rao
Veteran Member Send Private Message
Posts: 149
Veteran Member

I'm working on hire/rehire automation process.  As part of of the process we get the data from external applicant system and we load them to GHR using the process flow. Hire works fine. 

 

But when i invoke the rehirehireresource action on employee BC, it fails with following error. 

Exception: com.lawson.bpm.landmark.LandmarkApplicationException: Field Work Assignment Option is required: WorkAssignmentOption


I did have the WorkAssignmentOption hardcoded in the landmark call.

_dataArea="ltmdev" & _module="hr" & _objectName="Employee" & _actionName="RehireResource" & _actionOperator="NONE" & _actionType="SingleRecordQuery" & _pageSize="30" ..(all required fileds)....& WorkAssignmentOptions="1"

 

I tried with different number 0 to 9, I still get same error.

 

Any help is appreciated, 

 

 

I created same Topic under Landmark application. I just realized ,it's belongs to process flow. 

 

Tim Cochrane
Veteran Member Send Private Message
Posts: 154
Veteran Member
Have you compared the input data between the hire and rehire?? if hire is working, AND it contains a WorkAssignmentOption variable, then that should point you in the right direction.
Tim Cochrane - Principal LM/IPA Consultant
Srini Rao
Veteran Member Send Private Message
Posts: 149
Veteran Member

Hire action does work. Have not seen WorkAssignmentOption  in hire option. 


I changed the action type to "MultipleRecordQuery" option. Now I get different error...

Error Message:

complete: true
response message: null
record count: 1
has next: false
has previous: false
Results header string: 
Results string: 

Communications trace
null


FYI - HIRE option works like a champ. 



Thanks


Woozy
Veteran Member Send Private Message
Posts: 709
Veteran Member
Hi Srini Rao,

Did you get this resolved? I noticed two things - first, if you are trying to do an add/update then _actionType needs to be "CreateUpdateDelete" rather than "SingleRecordQuery" or "MultipleRecordQuery". Second, in your sample query you have 'WorkAssignmentOptions="1"' instead of 'WorkAssignmentOption="1"' (without the trailing "s").

Good Luck!

Kelly
Kelly Meade
J. R. Simplot Company
Boise, ID