# 🚀 Step-by-Step Guide: Process on boarding in Case Service

**URL:** https://community.neutrinos.com/t/step-by-step-guide-process-on-boarding-in-case-service/288
**Category:** Community
**Tags:** neutrinos-alpha
**Created:** [January 17, 2025, 12:38pm UTC](https://community.neutrinos.com/t/step-by-step-guide-process-on-boarding-in-case-service/288 "2025-01-17T12:38:08Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Jastin\_KJ](https://community.neutrinos.com/user_avatar/community.neutrinos.com/jastin_kj/32/67_2.png) [@Jastin\_KJ](https://community.neutrinos.com/u/Jastin_KJ)
#### Post date: [January 17, 2025, 12:38pm UTC](https://community.neutrinos.com/t/step-by-step-guide-process-on-boarding-in-case-service/288/1 "2025-01-17T12:38:08Z")

</div>

This guide walks you through the process of container onboarding in Case Service, including Neutrinos BPM deployment, and API usage for process and case definition.

* * *

### 1. Create a Neutrinos BPM Flow

1. Design the Case Flow:

 ![](https://community.neutrinos.com/uploads/default/original/1X/69dff045c1af4a8c61c03f078fb265427e6af77d.png)

1. Save and Deploy the Flow:

 ![](https://community.neutrinos.com/uploads/default/original/1X/5470d6bfac5469899b28471ffd38aabec1fd5f27.png)

* * *

### 2. Retrieve Deployment Details

1. Access Process Definitions:

 ![menu-process-definition](https://community.neutrinos.com/uploads/default/original/1X/ff988b0c0ae7b320871895b55b80f25895be037f.png)

 ![process-definition-list-page](https://community.neutrinos.com/uploads/default/original/1X/cb3c81bd57b525355995038fe04207666918bcfe.png)

- Locate the recently deployed process. ![](https://community.neutrinos.com/uploads/default/original/1X/0419c523422e19f0b8687cc0b48d4eaa7a153c8f.png)

1. Note Down Identifiers:

- Identify and note the Definition ID and Deployment. These details will be needed for invoking the BPM service.

* * *

### 3. Use the Bpm service API

1. Go to the api-docs of the bpmservice:

- Use the following details:
  - processDefinitionId: 
  - containerId: 

1. API Endpoint: ${DOMAIN}/bpmservice/api-docs#/Process%20Definition/ProcessDefinitionController\_getById

 ![](https://community.neutrinos.com/uploads/default/original/1X/39b41231042ceb309dfed79c0b3f9d03aa6771cd.png)

* * *

### 4. Process Definition Creation and Case Definition

1. API Response: Above API will return a response similar to this:

```auto
{
  "processName": "Registration Review",
  "processVersion": "1.0",
  "processDefinitionId": "create-case.RegistrationReview",
  "metadata": {
    "containerId": "create-case_1.0.0-SNAPSHOT",
    "variables": null,
    "reusableSubProcesses": null,
    "nodes": null,
    "timers": null,
    "tagsByVariable": null,
    "package": "com.myspace.create_case",
    "dynamic": false
  },
  "taskDefinitions": [
    {
      "taskName": "Registration",
      "taskType": "Human Task",
      "metadata": {
        "owner": ["High"]
      }
    }
  ]
}

```

 ![](https://community.neutrinos.com/uploads/default/original/1X/8a3384328252b47886ed3639ecfd26ceb788f46c.png)

1. Process Definition API:

 ![](https://community.neutrinos.com/uploads/default/original/1X/27d8a9118002820d340dc7ca7810bd34efb43b29.png)

1. Obtain pdid:

Case Definition Creation:

- Subprocess Handling:

- Add the subprocess pdid to the subProccess array.

- Use the obtained pdid to call the POST ${DOMAIN}/caseservice/case/definition/create API.

- Example payload:

```auto
{
  "caseDefinitionSchema": {
    "caseSchema": {},
    "pdid": "<PASTE_PDID_HERE>",
    "subProccess": ["<SUBPROCESS_PDID>"],
    "active": true
  },
  "caseType": "claim_registration",
  "version": "string"
}

```

- Replace:
  - \<PASTE\_PDID\_HERE\> with the pdid from the previous response.
  - \<SUBPROCESS\_PDID\> with subprocess IDs, if applicable.
  - Add a unique caseType (e.g., claim\_registration).

 ![](https://community.neutrinos.com/uploads/default/original/1X/8c189f7439c9a728f94966c916ff0fe47ec5d699.png)

1. Case definition response
2. After completing these steps, you will successfully create a case using the specified case type.

Using the casetype, call the POST ${DOMAIN}/caseservice/case/instance/create

For creating a case.

* * *

Feel free to ask questions or share feedback below! 💡

---

<div class="post-metadata">

### Author: ![Edward\_Mokhabukhi](https://community.neutrinos.com/user_avatar/community.neutrinos.com/edward_mokhabukhi/32/158_2.png) [@Edward\_Mokhabukhi](https://community.neutrinos.com/u/Edward_Mokhabukhi)
#### Post date: [March 18, 2025, 12:49pm UTC](https://community.neutrinos.com/t/step-by-step-guide-process-on-boarding-in-case-service/288/2 "2025-03-18T12:49:25Z")

</div>

![image](https://community.neutrinos.com/uploads/default/original/1X/0ab38b12a2633497c88b03ab00dda81e922daa58.png)  
 ![image](https://community.neutrinos.com/uploads/default/original/1X/a699f2f5c0bb277544e2b091599c00c005639175.png)  
 ![image](https://community.neutrinos.com/uploads/default/original/1X/86d0035395fc650ba1750635a4d441467a1df763.png)  
 ![image](https://community.neutrinos.com/uploads/default/original/1X/a34bfe92f4711e921aa21cbd38d71c90920199d6.png)

Am following this steps but i get the 404 error. please assist.

---

<div class="post-metadata">

### Author: ![Eldho](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/e/c6cbf5/32.png) [@Eldho](https://community.neutrinos.com/u/Eldho)
#### Post date: [March 18, 2025, 12:54pm UTC](https://community.neutrinos.com/t/step-by-step-guide-process-on-boarding-in-case-service/288/3 "2025-03-18T12:54:50Z")

</div>

@gaurav.pandey @vaibhav @Irfan_Ali can you please help

---

<div class="post-metadata">

### Author: ![Shamnad\_KS](https://community.neutrinos.com/user_avatar/community.neutrinos.com/shamnad_ks/32/272_2.png) [@Shamnad\_KS](https://community.neutrinos.com/u/Shamnad_KS)
#### Post date: [March 18, 2025, 2:10pm UTC](https://community.neutrinos.com/t/step-by-step-guide-process-on-boarding-in-case-service/288/4 "2025-03-18T14:10:56Z")

</div>

> [@Edward\_Mokhabukhi](#):
>
> Am following this steps but i get the 404 error. please assist.

@Edward_Mokhabukhi You might be trying to fetch the definition from a different environment. Can you specify which environment your BPM flow is in? Make sure it is in the same environment.

---

<div class="post-metadata">

### Author: ![Edward\_Mokhabukhi](https://community.neutrinos.com/user_avatar/community.neutrinos.com/edward_mokhabukhi/32/158_2.png) [@Edward\_Mokhabukhi](https://community.neutrinos.com/u/Edward_Mokhabukhi)
#### Post date: [March 19, 2025, 6:21am UTC](https://community.neutrinos.com/t/step-by-step-guide-process-on-boarding-in-case-service/288/5 "2025-03-19T06:21:23Z")

</div>

> [@Shamnad\_KS](#):
>
> @Edward_Mokhabukhi You might be trying to fetch the definition from a different environment. Can you specify which environment your BPM flow is in? Make sure it is in the same environment.

I am currently running jBPM in my local environment, but it seems my request was attempting to fetch the process definition from a remote KIE Server. After following your guidance and using the sandbox BPM, everything worked perfectly. Thank you, Shamnad!.

---

<div class="post-metadata">

### Author: ![LoiHC](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/l/e36b37/32.png) [@LoiHC](https://community.neutrinos.com/u/LoiHC)
#### Post date: [March 26, 2026, 4:26am UTC](https://community.neutrinos.com/t/step-by-step-guide-process-on-boarding-in-case-service/288/6 "2026-03-26T04:26:35Z")

</div>

Hi @Shamnad_KS , @Jastin_KJ , @Sam in step 4 at Process Definition API what token we using in here cause I using token from this api [https://sandbox-ids.neutrinos-apps.com/token](https://sandbox-ids.neutrinos-apps.com/token)

But when I using that token for api [https://alpha-pt.neutrinos-apps.com/caseservice/process/definition/create](https://alpha-pt.neutrinos-apps.com/caseservice/process/definition/create) it just return 401  
`{`  
`“status”: “error”,`  
`“statusCode”: 401,`  
`“error”: {`  
`“code”: “UNAUTHORIZED”,`  
`“message”: “Invalid authorization”,`  
`“details”: null`  
`}`  
`}`

---

<div class="post-metadata">

### Author: ![Sam](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@Sam](https://community.neutrinos.com/u/Sam)
#### Post date: [March 26, 2026, 6:27am UTC](https://community.neutrinos.com/t/step-by-step-guide-process-on-boarding-in-case-service/288/7 "2026-03-26T06:27:51Z")

</div>

Please try the same curl in postman with the token

---

<div class="post-metadata">

### Author: ![LoiHC](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/l/e36b37/32.png) [@LoiHC](https://community.neutrinos.com/u/LoiHC)
#### Post date: [March 26, 2026, 6:30am UTC](https://community.neutrinos.com/t/step-by-step-guide-process-on-boarding-in-case-service/288/8 "2026-03-26T06:30:51Z")

</div>

sorry @Sam I post missing some information what I mean it when I using token from [https://sandbox-ids.neutrinos-apps.com/token](https://sandbox-ids.neutrinos-apps.com/token) for API [https://alpha-pt.neutrinos-apps.com/caseservice/process/definition/create](https://alpha-pt.neutrinos-apps.com/caseservice/process/definition/create) it just return 401 like img below here

 ![image](https://community.neutrinos.com/uploads/default/original/2X/1/11b6b9bd6935942c824eedef8d62ecd189213679.png)

---

<div class="post-metadata">

### Author: ![Sam](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@Sam](https://community.neutrinos.com/u/Sam)
#### Post date: [March 26, 2026, 6:57am UTC](https://community.neutrinos.com/t/step-by-step-guide-process-on-boarding-in-case-service/288/9 "2026-03-26T06:57:20Z")

</div>

Please check your inbox

---

<div class="post-metadata">

### Author: ![LoiHC](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/l/e36b37/32.png) [@LoiHC](https://community.neutrinos.com/u/LoiHC)
#### Post date: [March 26, 2026, 7:16am UTC](https://community.neutrinos.com/t/step-by-step-guide-process-on-boarding-in-case-service/288/10 "2026-03-26T07:16:16Z")

</div>

Ok @Sam I can access token now but I have another issue when I call API I [https://alpha-pt.neutrinos-apps.com/caseservice/process/definition/create](https://alpha-pt.neutrinos-apps.com/caseservice/process/definition/create) with body I get from API [https://alpha-pt.neutrinos-apps.com/bpmservice/process/definition/fetch-by-id](https://alpha-pt.neutrinos-apps.com/bpmservice/process/definition/fetch-by-id) but it return 500 with message like img below here

 ![image](https://community.neutrinos.com/uploads/default/original/2X/7/7cb9904fed72a1b023889e830ba7d677bc00007b.png)

---

<div class="post-metadata">

### Author: ![Sam](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@Sam](https://community.neutrinos.com/u/Sam)
#### Post date: [March 26, 2026, 7:30am UTC](https://community.neutrinos.com/t/step-by-step-guide-process-on-boarding-in-case-service/288/11 "2026-03-26T07:30:12Z")

</div>

It seems the issue might be due to pending migration for the new platform. We will verify this with the team and keep you updated.

---

<div class="post-metadata">

### Author: ![LoiHC](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/l/e36b37/32.png) [@LoiHC](https://community.neutrinos.com/u/LoiHC)
#### Post date: [March 26, 2026, 7:53am UTC](https://community.neutrinos.com/t/step-by-step-guide-process-on-boarding-in-case-service/288/12 "2026-03-26T07:53:22Z")

</div>

pls check and response for me asap

---

<div class="post-metadata">

### Author: ![Sam](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@Sam](https://community.neutrinos.com/u/Sam)
#### Post date: [March 26, 2026, 11:33am UTC](https://community.neutrinos.com/t/step-by-step-guide-process-on-boarding-in-case-service/288/13 "2026-03-26T11:33:59Z")

</div>

Hello @LoiHC ,  
Your PDID is 1, so there is no need to create the process definition again. You only need to create the case definition.

---

<div class="post-metadata">

### Author: ![LoiHC](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/l/e36b37/32.png) [@LoiHC](https://community.neutrinos.com/u/LoiHC)
#### Post date: [March 26, 2026, 3:10pm UTC](https://community.neutrinos.com/t/step-by-step-guide-process-on-boarding-in-case-service/288/14 "2026-03-26T15:10:36Z")

</div>

Hi @Sam , I create the case definition by call API [https://alpha-pt.neutrinos-apps.com/caseservice/case/instance/create?branch=feature%2FAPS-1234](https://alpha-pt.neutrinos-apps.com/caseservice/case/instance/create?branch=feature%2FAPS-1234) but it return 500 pls help me to check them I send a cUrl of API in your inbox

---

<div class="post-metadata">

### Author: ![Sam](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@Sam](https://community.neutrinos.com/u/Sam)
#### Post date: [March 27, 2026, 4:24am UTC](https://community.neutrinos.com/t/step-by-step-guide-process-on-boarding-in-case-service/288/15 "2026-03-27T04:24:01Z")

</div>

Could you please share your casetype?

---

<div class="post-metadata">

### Author: ![Sam](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@Sam](https://community.neutrinos.com/u/Sam)
#### Post date: [March 27, 2026, 4:27am UTC](https://community.neutrinos.com/t/step-by-step-guide-process-on-boarding-in-case-service/288/16 "2026-03-27T04:27:16Z")

</div>

This api is for the **case instance creation**. Have you created the **case definition** using the corresponding API?  
[Swagger UI](https://alpha-pt.neutrinos-apps.com/caseservice/api-docs#/Case%20Definition/CaseController_addCaseDefinition)

---

<div class="post-metadata">

### Author: ![LoiHC](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/l/e36b37/32.png) [@LoiHC](https://community.neutrinos.com/u/LoiHC)
#### Post date: [March 27, 2026, 4:31am UTC](https://community.neutrinos.com/t/step-by-step-guide-process-on-boarding-in-case-service/288/17 "2026-03-27T04:31:39Z")

</div>

yes I already created the case definition and have cdid from that api but when I go to next step to create case instance creation it return 500. pls support me

---

<div class="post-metadata">

### Author: ![Sam](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@Sam](https://community.neutrinos.com/u/Sam)
#### Post date: [March 27, 2026, 4:35am UTC](https://community.neutrinos.com/t/step-by-step-guide-process-on-boarding-in-case-service/288/18 "2026-03-27T04:35:34Z")

</div>

I can see that there is no case definition created for this case type in the main branch. Please create the case definition in the main branch and proceed to create the case there as well.

---

<div class="post-metadata">

### Author: ![LoiHC](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/l/e36b37/32.png) [@LoiHC](https://community.neutrinos.com/u/LoiHC)
#### Post date: [March 27, 2026, 6:17am UTC](https://community.neutrinos.com/t/step-by-step-guide-process-on-boarding-in-case-service/288/19 "2026-03-27T06:17:28Z")

</div>

Hi @Sam so I switch to main branch and when I create case definition it say duplicate key value but when I move to create case instance it say don’t have my case definition like img below here. Pls help me check them

 ![image](https://community.neutrinos.com/uploads/default/original/2X/b/b92baad75f15cdcc0933723d1fba1b2abba1551c.png)

 ![image](https://community.neutrinos.com/uploads/default/original/2X/8/85b9aff5b795bfc1e01f7105fdf447ea3d7f0bb2.png)

---

<div class="post-metadata">

### Author: ![Sam](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@Sam](https://community.neutrinos.com/u/Sam)
#### Post date: [March 27, 2026, 6:59am UTC](https://community.neutrinos.com/t/step-by-step-guide-process-on-boarding-in-case-service/288/20 "2026-03-27T06:59:42Z")

</div>

Could you please change the BPM version and perform the onboarding again?

[Next page](https://community.neutrinos.com/t/step-by-step-guide-process-on-boarding-in-case-service/288.md?page=2)
