Hi All,
I am new to Camunda and working on a project where we need to integrate our existing product with camunda by creating a work flow.
Can you please help me with initial steps? I have few questions
since our application is running on weblogic server, do we need to install camunda on same server?
How can we create a layer of camunda on top of our application?
Steps to install camunda?
Does Camunda modeller is supported only for eclipse:kepler? I am using eclipse:Luna version, do we have any plugin for that?
we are planning to create our modules Rest API based, How can we integrate those in Camunda ?
Does camunda comes with its own Rest APIs , which we can expose as entry point or exit point for our application?
Please share relevant articles, thanks in advance
Thanks
Shailender
@shailender You can follow any of the below deployment methods:
Deploy it as embed camunda as part of your java application itself by adding camunda dependencies into classpath
Also you can setup standalone process application
Container managed distribution
Docker images also available
Refer this docs for setup:
you can embed camunda dependencies as part of your java applications
shailender:
Steps to install camunda?
Based on above deployment links you can follow the guidelines.
camunda bpmn support to eclipse was deprecated,. so itās better to use cawemo online tool or download desktop application Camunda Modeler
shailender:
we are planning to create our modules Rest API based, How can we integrate those in Camunda ?
you can add camunda spring boot starters dependencies. it will support REST API access.
Camunda comes with rest api. To enable it you need to include camunda spring boot starters. Refer this link for REST API
1 Like
Niall
May 31, 2019, 12:45pm
3
I think @aravindhrs has already done a good job answering your questions but i just wanted to say that you can follow these tutorial videos for a better understanding on how to use Camunda
Thanks @aravindhrs , will go through these links, and share my progress as well.
Thanks
Shailender Khandelwal
I tried your weather example in a shared in youtube video.
i replicated the steps as mentoned, got the error. then changed the variable from āweatherOkā to āokā
and still the same error.
Getting below error
Cannot instantiate process definition SimpleDemo:2:38c26a26-843c-11e9-bf1e-2816ad160229: Unknown property used in expression: #{ok}. Cause: Cannot resolve identifier āokā
can you suggest what i missed here?
Also, can you tell me the difference in community and enterprise version?
Thanls
Shailender Khandelwal
weatherOk is a field, value will be set from CheckWeatherDelegate java class. Did you created that Java Delegate and configured in the service task?
You can find the differences between enterprise and Community edition in below link:
Yes, i created the java delegate class and configured the service task.
see below code:
public class CheckWeatherDelegate implements JavaDelegate {
@Override
public void execute(DelegateExecution execution) throws Exception {
// TODO Auto-generated method stub
Random rando=new Random();
execution.setVariable("name", "Shailender" );
execution.setVariable("boolean",rando.nextBoolean());
}
}
I have tried with different variables and updated the same in bpmn files too
Niall
June 1, 2019, 11:42am
9
With that code youāre creating a variable called boolean
- you need to give the variable a name like weatherOk
or ok
depending on what the gateway is expecting.
is there any other place where i need to provide this variable?
Niall
June 1, 2019, 11:47am
11
No, but i wouldnāt call the variable boolean
it may cause issues because itās a reserved word in Java.
But thats all youād need.
I tried many strings , and every time getting same error.
checked for syntax as well.
#{welcomeOk} where āwelcomeOkā is the exact matched string used from java code. Recompiled the code and deployed it again,
PS: I am using community edition.
tried with new string now as weatherReport.
The process could not be started. : Cannot instantiate process definition SimpleDemo:2:ce64777f-8463-11e9-a5cc-2816ad160229: Unknown property used in expression: #{weatherReport}. Cause: Cannot resolve identifier āweatherReportā
I am using camunda with tomcat. Is there any other step with tomcat. i feel either its syntax issue or some config issue.
Niall
June 1, 2019, 5:08pm
14
Can you upload your model?
Hi Niall
Attached bpmn file.
process.bpmn (5.1 KB)
Niall
June 2, 2019, 8:30am
16
The check weather task is not actually connected to any sequence flows - so itās not being run.
You need to have a sequence flow going into it and leave it for the process to work
I will read about sequence flow, It was not mentioned in the video.
aravindhrs:
weatherOk
@shailender use this bpmn.
process.bpmn (5.4 KB)
And your delegate should be like:
public class CheckWeatherDelegate implements JavaDelegate {
@Override
public void execute(DelegateExecution execution) throws Exception {
Random rando=new Random();
execution.setVariable("name", "Shailender" );
execution.setVariable("weatherOk",rando.nextBoolean());
}
}
Hi @aravindhrs
I used your BPMN file and your delegateā¦ It didnāt throw any error. But, it also didnāt show any changes done , but i can see the logs and verify that it has executed.
can you please explain, what changes you have done? or where i went wrong?
Thanks
shailender Khandelwal
Already @Niall explained you about sequence flow not connected with your service task. The outgoing sequence flow from start event should connect with service task. In your case it skipped the service task and directly connected to gateway.