cancel
Showing results for 
Search instead for 
Did you mean: 

record of database as input for workflow

striker_sfc1
Champ in-the-making
Champ in-the-making
Hi people.

I have a table in my postgresql DB. I need of read records from the database and use some fields as input to start a workflow.
At the moment I can read the input parameters from a form (for testing the workflow), but i need of automate the process reading those parameters from a DB.

thanks
Alex
15 REPLIES 15

striker_sfc1
Champ in-the-making
Champ in-the-making
I cannot resolve…. I try this:


…..
ProcessEngine processEngine = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration().buildProcessEngine();
RuntimeService runtimeService = processEngine.getRuntimeService();
runtimeService.startProcessInstanceByKey("wf2");


But at line  runtimeService.startProcessInstanceByKey("wf2"); it give me this error:

mar 29, 2012 6:05:25 PM org.activiti.engine.impl.interceptor.CommandContext close
Grave: Error while closing command context
org.activiti.engine.ActivitiException: no processes deployed with key 'wf2'
at org.activiti.engine.impl.persistence.deploy.DeploymentCache.findDeployedLatestProcessDefinitionByKey(DeploymentCache.java:63)
at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:58)
at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:31)
at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:42)
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
at org.activiti.engine.impl.RuntimeServiceImpl.startProcessInstanceByKey(RuntimeServiceImpl.java:46)
at main.main(main.java:87)

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
New questions in new topics… And search the forum and the internet please… Very generic issue…

striker_sfc1
Champ in-the-making
Champ in-the-making
I don't understand because you are very irritating! I searched for this issue in internet all day and i don't find nothig… and also.. The problem is the same as the initial of this topic!

If you do not want to answer … do not!

Alex


P.S. I resolved the problem: I had insert a wrong wf name. :lol:  We do not all genes dear ronald.van.kuijk

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
I don't understand because you are very irritating!

It's up to you… just do not expect any help from me from now on… Never, ever…

http://catb.org/~esr/faqs/smart-questions.html#not_losing

Have a nice weekend…

striker_sfc1
Champ in-the-making
Champ in-the-making
so far did not help me. you only have offended..so….

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
Offended? Most of your questions were basic java things… Therefor the answer: learn java and a references to e.g. CDI.

Your second question was not in any way related to the topic… Yes for your 'local' challenge' but not for others. If they search for something related to your second question, they see a topic that is in not any way related. So therefor I responded with: new questions in new topics.

I do not see how in anyway this could have offended you… In my opinion, you made it personal by calling me irritating… I never ever used words like that.

But again… It's your choice…