Jump to content

API Scheduler - LogServiceRequest not triggering BPM even though 'bpmName' is passed


Recommended Posts

I am currently testing the creation of some reoccurring scheduled requests via the API Scheduler, but even though the requests get logged via the call to 'logServiceRequest' and the 'bpmName' parameter is passed with the correct and valid name, no BPM is being spawned against the request.

Any suggestions as why it is not spawning?

Cheers

Martyn

{
  "APIKey": "REMOVED",
  "InstanceID": "REMOVEd",
  "Schedule": [{
    "Enabled": true,
    "CronSchedule": "15 * * * * *",
    "DayOfMonthANDDayOfWeek":false,
    "ScheduleFrom": "2022-07-25T00:00:00.000Z",
    "ScheduleTo": "2022-07-26T00:00:00.000Z",
    "Service": "apps/com.hornbill.servicemanager/ServiceRequests",
    "API": "logServiceRequest",
       "APIParams":{
        "0":
        {
          "Type":"Content",
          "Parameter":"summary",
          "Content":"UKLive:- Prepare Detail Health Status report"
        },
        "1":
        {
          "Type":"Content",
          "Parameter":"description",
          "Content":"# Check critical BI Jobs status\r\n# Check and verify  the essential functionalities of Idox software solution\r\n# Take preventive action if any failure"
        },
		"2":
		{
			"Type":"Content",
			"Parameter":"requestType",
			"Content":"Service Request"
		},
        "3":
        {
          "Type":"Content",
          "Parameter":"customerId",
          "Content":"11152"
        },
		"4":
		{
			"Type":"Content",
			"Parameter":"customerType",
			"Content":"1"
		},
		"5":
		{
			"Type":"Content",
			"Parameter":"priorityId",
			"Content":"3"
		},
		"6":
		{
			"Type":"Content",
			"Parameter":"sourceType",
			"Content":"Scheduler"
		},
		"7":
		{
			"Type":"Content",
			"Parameter":"serviceId",
			"Content":"245"
		},
		"8":
		{
			"Type":"Content",
			"Parameter":"catalogId",
			"Content":"973"
		},
		"9":
		{
			"Type":"Content",
			"Parameter":"bpmName",
			"Content":"Idox SR SLM"
		}
      }
  }]
}

 

Link to comment
Share on other sites

Resolved this, as even though I set the 'bpmName' parameter to the correct display name of the BPM, the internal name used by Hornbill is all lower case with the spaces replaced with hyphens, so had to use 'idox-sr-slm' rather than 'Idox SR SLM'.

Cheers

Martyn

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...