#1 Alpha Case Creation Failing with 500 Error

Hi @Sam @NashitaAfrah @Tanveer

Alpha case creation is not working and returning 500 internal server error.

Can you please check whether the alpha_training project exists in your BPM portal?

We have utilized the provided BPM zip in the assignment. “alpha_training_nb_underwriting.zip”

the case type is Pre-Configured, I am facing the same issue as well!

please check in your bpm portal whether project exist or not?

Only the case type: alpha_training and the Business Process zip file name: alpha_training_nb_underwriting.zip, that are provided, with respect to that, couldn’t find anything related in the BPM Portal

Please suggest the required steps

also facing the same issue when trying to create a case instance from caseService using api endpoint : https://alpha-pt.neutrinos-apps.com/caseservice/case/instance/create

these are the steps i have tried alternatively followed:

1.) bussiness-process-defination used(exists in the BPM portal):
api: https://alpha-pt.neutrinos-apps.com/bpmservice/process/definition/fetch-by-id

{
  "processDefinitionId": "phupv7_poc.alpha_entry_process",
  "metadata": {
      "containerId": "phupv7_poc_1.0.0-SNAPSHOT"
   }
}

response:


{

"processName": "alpha_entry_process",
"processVersion": "2.0",
"processDefinitionId": "phupv7_poc.alpha_entry_process",
"metadata": {
"containerId": "phupv7_poc_1.0.0-SNAPSHOT",
"variables": null,
"reusableSubProcesses": null,
"nodes": null,
"timers": null,
"tagsByVariable": null,
"package": "org.jbpm",
"dynamic": false
},

"taskDefinitions": [
{
"taskName": "Underwriter",
"taskType": "Human Task",
"metadata": {
"owner": ["krisv","Underwriter"]
}
},
{
"taskName": "Encoder",
"taskType": "Human Task",
"metadata": {
"owner": ["krisv", "Encoder"]
}
},
{
"taskName": "Reviewer",
"taskType": "Human Task",
"metadata": {
"owner": ["krisv","Reviewer"]
}
}
]
}

2.) created a case process defination using the above api response as the body in the below api call: https://alpha-pt.neutrinos-apps.com/caseservice/process/definition/create

response:

{
"success": true,
"message": "New Process Definition added successfully in Case Server",
"pdid": 63
}

3.) then created a case defination with caseType: “tj-alpha-training",
api: https://alpha-pt.neutrinos-apps.com/caseservice/case/definition/create


{
"caseDefinitionSchema": {
"caseSchema": {},
"pdid": 63
},
"caseType": "tj-alpha-training",
"version": "string"
}

then when trying to create a case instance using api endpoint: https://alpha-pt.neutrinos-apps.com/caseservice/case/instance/create

api body:

{
"caseType": "tj-alpha-training",
"caseData": {
"caseType": "tj-alpha-training",
"encoder": {
"remarks": "string",
"encoderDecision": "string"
},
"reviewer": {
"remarks": "string",
"reviewerDecision": "string"
},
"underwriter": {
"remarks": "string",
"underwriterDecision": "string"
},

"caseId": "string",
"assignedTo": "string",
"applicationDate": "string",
"customerName": "string",
"remarks": "string",
"status": "string",
"documents": {
"name": "string",
"type": "string",
"previewUrl": "string",
"size": "string"
},
"auditLogs": [
{
"properties": {
"title": "string",
"description": "string",
"created_at": "string",
"metadata": {
"userName": "string"
}
}
}
],
"auditOptions": {}
}
}

response:
{
“status”: “error”,
“statusCode”: 500,
“error”: {
“code”: “INTERNAL_SERVER_ERROR”,
“message”: “Internal Server Error”,
“details”: null
}
}