Hi All
I have created a custom workflow type in visual studio using 2 entities:
1. HCMRecruitingRequest
2. HCMCandidateToHire
I would like the workflow to trigger when the status of a Recruiting Request changes to Active. I have setup the Activation condition of the newly created workflow with the condition as specified.
In order to test this I have then navigated to Recruiting Requests and created a new Request, entered the details, click Save and finally click Activate at this time I expect the workflow to trigger however it does not.
Is there anything else that I can check to determine why its not doing this.
I am not able to understand the functionality you are trying to achieve.
If you want to submit the workflow via code, you need to add the logic for submission for workflow if you don't want to use submit button on the form.
Refer to the below blog for submission of workflow via code. After submission, the approval will be assigned to one user. So how you are going to do that functionality?
Thanks,
Girish S.
Hi Girish, basically what I am looking for is for the workflow to trigger in the background. There is no requirement for the submit button to appear in the form. As soon as the form status is changed to active a workflow needs to trigger.
I have setup the activation properties of the workflow for the same however it just does not trigger I am not sure what I am missing. How do I ensure the custom workflow I have created is listening to the correct table for inserted and updated records.
Hi Sneha,
Are you saying that submit button is not enables after the status is changes to Active?
If yes, have you added the code in the canSubmitToWorkflow method at table level?
Also have you added the workflow type in the form design property?
Seems it's a standard form so you done the above using extension.
Thanks,
Girish S,
Hi Mohit
It is is the Dev Environment, I can confirm the workflow batch jobs are running every minute the status changes to executing. Im assuming that also means the Batch service is running.
Hi Snehalb247, Are the workflow batch jobs running in the environment?
check the batch jobs here
If it is Dev environment, then ensure that batch service is also running.
André Arnaud de Cal...
291,965
Super User 2025 Season 1
Martin Dráb
230,836
Most Valuable Professional
nmaenpaa
101,156