Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
09-15-2022 08:41 PM
I started learning Neo4J and pretty new to the concepts. I am not sure if we can represent a business process in Neo4J. Suppose there is a process with different steps to fix a damaged cricket bat. How do I represent the flow and steps?
Also, consider that I am building a website which helps users to fix the damaged cricket bats by themselves. While they going thru the steps on the website, how do I show the recommended products needed to fix the damaged bats on the same web page?(how would I connect these products to that process?)
My questions may be too generic but expecting someone understood my requirement.
Thanks,
JK
Solved! Go to Solution.
09-21-2022 12:21 PM
Here is a first shot:
09-21-2022 10:11 PM
@jk05802 What I do is use the BPMN business process modelling language. All business processes are trees (they have exactly one starting point) and all trees are graphs. There can be multiple outcomes.
You can model a business process in BPMN using something like Camunda engine, then export the XML. Following that you can transform the XML to ingest the BPMN graph into Neo4j.
Finally once you have done that, you can ask questions like the following:
* Given I'm on step x in a process, what is the shortest path to desired outcome y?
* For all of the instances of a process, what is the step that takes the longest? If it was sped up by x%, what would the total savings be?
* Given I'm on step x of a process, what are the possible outcomes from here?
I will write a blog about the above in future. In the meantime, have fun!
09-15-2022 09:21 PM
Q: Suppose there is a process with different steps to fix a damaged cricket bat?
Do you have data for each process and for each damage? The model depends on the available data.
09-15-2022 09:32 PM
I do have process with few steps and each step will have descriptions written in sentences.
Ex:
Consider, If the handle is broken.
Process name would be "How to fix the broken handle"
Steps look like:
1. Use a saw blade to cut and separate the damaged handle from the bat.
2. Get a new handle and make it in a shape to fit in to the bat.
3. Apply glue
4. Fit the handle.
5. Smoothen/clean the handle
6. Use benchpress to tight hold the bat.
7. Leave it for 1 day and use.
In the above steps, we could see the saw blade, glue, bench press and handle right. I want them to be recommended(to buy) on my process web page.
09-16-2022 10:24 AM
Thanks for the update. To recommend the parts to buy, do you have parts list associated with each fix?
09-18-2022 02:55 PM
Yes. I do have them.
09-21-2022 12:21 PM
Here is a first shot:
09-22-2022 05:11 PM
Thank you @ameyasoft for writing the queries and explaining me with the graph. Appreciate it!
09-21-2022 10:11 PM
@jk05802 What I do is use the BPMN business process modelling language. All business processes are trees (they have exactly one starting point) and all trees are graphs. There can be multiple outcomes.
You can model a business process in BPMN using something like Camunda engine, then export the XML. Following that you can transform the XML to ingest the BPMN graph into Neo4j.
Finally once you have done that, you can ask questions like the following:
* Given I'm on step x in a process, what is the shortest path to desired outcome y?
* For all of the instances of a process, what is the step that takes the longest? If it was sped up by x%, what would the total savings be?
* Given I'm on step x of a process, what are the possible outcomes from here?
I will write a blog about the above in future. In the meantime, have fun!
09-22-2022 05:15 PM
Thank you so much @jasperblues. I was looking for this answer. Will try to use Camunda and ingest BPMN graph into Neo4J. Looking forward to reading your blog.
09-22-2022 05:18 PM
Welcome @jk05802. There is a bit of a learning curve, but it will be worth it. Feel free to ping me if you get stuck.
09-22-2022 05:20 PM
Sure. Thank you so much!
All the sessions of the conference are now available online