[opencms-dev] defining process in jBPM-OpenCms?

Vikrama Sanjeeva viki.sanjeeva at gmail.com
Mon Jan 28 13:29:58 CET 2008


Hi Shi:

   After unzipping your sample publish.process, I found following dir/files
in it:

classes
gpd.xml
processdefinition.xml
processimage.jpg

"classes" conatins class files in package: "cn.langhua.opencms.jbpm.publish"

Then I copied the same dir/files of sample, websale process from
Jboss-jBPM JPDL Suite in folder and finally zipped that folder manualy using
win-zip tool.

On deploying it in jBPM-Workflow in OpenCMS Admin: I got the following
error:

[[ERROR] no processdefinition.xml inside process archive]
org.jbpm.jpdl.JpdlException: [[ERROR] no processdefinition.xml inside
process archive]
Then I did the same with your sample, publish.process. I just unizpped it
and zipped it back using winzip tool and deployed in opencms Admin. I got
the *same* above *error*: org.jbpm.jpdl.JpdlException: [[ERROR] no
processdefinition.xml inside process archive]
Why it is so? Do I have to change my compressing/zipping mechanism?

Also, I found below script in your "processdefinition.xml". You have added
it in "processdefinition.xml" which I guess was not there in Jboss-jBPM JPDL
Suite  when you developed publish.process.

********************************SCRIPT
START********************************
 <script>
               <expression>
               token.addComment("rootpath=/sites/default/jbpm/");
               token.addComment("createProject=true");
               token.addComment("projectPrefix=publish_");
               token.addComment("elementdefaultvisibility=write");
               </expression>
  </script>
********************************SCRIPT END ********************************

Different script is their in "processdefinition.xml" of websale which you
provided as a sample in "jBPM-OpenCms".

What am I missing?

Your prompt reply will be highly appreciated!

Thank you.

Bye,
Viki.






On Jan 28, 2008 12:34 PM, Shi Yusen <shiys at langhua.cn> wrote:

> Glad you reached at this step. The process file is a zip file. Try to
> unzip to check its content.
>
> So the answer is simple: zip it or run an ant command to build it into a
> zip file, and then upload the zip file in OpenCms jBPM amdin.
>
> Kind Regards,
>
> Shi Yusen/Beijing Langhua Ltd.
>
>
> 在 2008-01-28一的 11:13 +0300,Vikrama Sanjeeva写道:
>  >
> > Ok I've downloaded "JBoss jBPM JPDL Suite " and found that sample
> > publish.process which comes along with jBPM-openCMS is developed in
> > same suite. Now my problem is that, once I've defined a process in JDL
> > suite, how I will import/upload that in jBPM-OpemCMS workflow? I know
> > there is a button in openCMS Admin for uploading process definition.
> > But I want to know (after defining porcess in JBoss-jBPM-eclipse) how
> > it will be exported from eclipse and then imported in opencms?
> >
> >  I m looking for urgent help in this regard.!!
> >
> > Thank you!
> >
> > Bye,
> > Viki.
> >
> >
> > On Jan 26, 2008 10:14 PM, Vikrama Sanjeeva <viki.sanjeeva at gmail.com>
> > wrote:
> >         Hi,
> >
> >             Installed jBPM-OpenCms 3.1.2 workflow in OpneCms 7.0.3.
> >         Then imported sample publish.process workflow in jBPM-OpenCms
> >         and tested how the process works.
> >
> >         Now, my question is that: How I can define/create new
> >         process/workflow which I can import in jBPM-OpenCms 7.0.3?
> >         Does i need a "tool" for defining jBPM workflows?
> >
> >         Please advise!
> >
> >         Bye,
> >         Viki.
> >
> > _______________________________________________
> > This mail is sent to you from the opencms-dev mailing list
> > To change your list options, or to unsubscribe from the list, please
> visit
> > http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20080128/e25c1ae8/attachment.htm>


More information about the opencms-dev mailing list