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

Vikrama Sanjeeva viki.sanjeeva at gmail.com
Wed Jan 30 16:14:58 CET 2008


Hello Shi:

  There are two things am working on, and I need your help in this regard:))

Firstly, I made a copy of your publish process sample and changed: process
name, assinged new opencms user to editor and finally assinged "Draft Doc"
task to that new user (editor). Build and deployed in opencms, it works
fine, while forwarding the "Draft Doc" task to the newly assinged opencms
user.

    I notice that, since it is a document publishing process, which starts
with selecting "ready-made" document present in opencms repository and then
it it forwarded for draft doc, recview doc and finaly publishing document.
However, if the document is changed/modified in between on any task-node,
the changes get reflect on the document present in opencms repository.
Whereas, as per my understanding of document publishing process, the changed
should not reflect to original doc in opencms repository untill unless the
document is finally published through publishing process. And this is
something which I am looking for. How it could be done? Any insights?

2nd thing is that: I created a new process (myProcess) project in eclipse,
deployed their in jboss and examined/run from jbpm-console. Then I tried
migrating same process under "OpenCms-7.0.2-jBPM-3.1.2/processes directory
in eclipse. I created a classes folder in which I placed .class files, and
placed gpd.xml, processdefinition.xml and processimage.jpg in
OpenCms-7.0.2-jBPM-3.1.2/processes/myProcess. Build .myProcess.process and
successfully deployed/uploaded to jbpm-Workflow in opencms. But after
clicking "new workflow" in admin console, I got NullPointerException. My
question, what is the right approach of migrating JPDL process created
in  eclipse into your plug-in that is, OpenCms-7.0.2-jBPM-3.1.2/processes in
eclipse?


Looking forward for your reply.

Bye,
Viki.

2008/1/30 Vikrama Sanjeeva <viki.sanjeeva at gmail.com>:

> Good morning Shi!
>
> Yes, JBoss GPD (Graphical Process Designer) is installed in my eclipse. Am
> working by creating "New"-->"Prcess Project" in it.
>
> Your plan for developing jbpm designer looks good !!
>
> Bye,
> Viki.
>
>   On Jan 30, 2008 8:54 AM, Shi Yusen <shiys at langhua.cn> wrote:
>
> > Congratulations!
> >
> > BTW, there's a jbpm plugin for eclipse which will help you to DRAW
> > workflows.
> >
> > You can find there are some jbpm desingers in sourceforge. We also
> > planned to write a new jbpm designer to support draw jbpm swimlane graph
> > directly last year, which could help service providers to split their
> > business analyzers and programmers naturally. Unfortunately no time, no
> > money to do this, it's in our plan to do in this year. Could I get some
> > funds to do this from this list? :)
> >
> > Regards,
> >
> > Shi Yusen/Beijing Langhua Ltd.
> >
> > 在 2008-01-29二的 18:22 +0300,Vikrama Sanjeeva写道:
> >  > Hi Shi:
> > >
> > >  Thanks you so much for helping! Its working now.
> > >
> > > I think my eclipse enviornment for developing "opencms-compatible
> > > jbpm-jdl process" is now configured? What do you say? Means, I could
> > > define process under /process dir in eclipse, build using
> > > ant and finally deploy MyProcess.process in opencms?
> > >
> > >
> > > Bye
> > > Viki.
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > On Jan 29, 2008 3:45 PM, Shi Yusen <shiys at langhua.cn> wrote:
> > >         The output said you ran clean, init, initmsg, prepare and
> > >         compile. The
> > >         compile is default target.
> > >
> > >         Run As -> Ant Build ... -> select compile-publish, and run
> > >         Good luck,
> > >
> > >         Shi Yusen/Beijing Langhua Ltd.
> > >
> > >
> > >
> > >         在 2008-01-29二的 14:03 +0300,Vikrama Sanjeeva写道:
> > >
> > >         > Hi Shi:
> > >         >   Followed the link and got the source in my eclipse. After
> > >         that I
> > >         > deleted "auditing.process" and "websale.process" from build
> > >         directory
> > >         > in eclipse and tried to build again by clicking "Run As -
> > >         Ant Build"
> > >         > on build.xml. I got the following output on eclipse console,
> > >         but no
> > >         > ".process" files are created in /build/ directory.
> > >         >
> > >         > *************************************************build.xml
> > >         output
> > >         > START*******************************************
> > >         > Buildfile:
> > >         >
> > >         > C:\Documents and Settings\Administrator\workspace
> > >         > \OpenCms-7.0.2-jBPM-3.1.2\build.xml
> > >         >
> > >         > clean
> > >         >
> > >         > :
> > >         >
> > >         > [
> > >         >
> > >         > delete] Deleting directory C:\Documents and Settings
> > >         \Administrator
> > >         > \workspace\OpenCms-7.0.2-jBPM-3.1.2\bin
> > >         >
> > >         > init
> > >         >
> > >         > :
> > >         >
> > >         > [
> > >         >
> > >         > echo] Building jbpm-opencms 2.0.2
> > >         >
> > >         > [echo]
> > >         >
> > >         > [
> > >         >
> > >         > echo] Working directory is: C:\Documents and Settings
> > >         \Administrator
> > >         > \workspace\OpenCms-7.0.2-jBPM-3.1.2
> > >         >
> > >         > [
> > >         >
> > >         > echo] Destination directory is: C:\Documents and Settings
> > >         > \Administrator\workspace\OpenCms-7.0.2-jBPM-3.1.2
> > >         >
> > >         > [
> > >         >
> > >         > echo] Tomcat home is: d:\apache-tomcat-6.0.2
> > >         >
> > >         > [echo]
> > >         >
> > >         > initmsg
> > >         >
> > >         > :
> > >         >
> > >         > prepare
> > >         >
> > >         > :
> > >         >
> > >         > [
> > >         >
> > >         > mkdir] Created dir: C:\Documents and Settings\Administrator
> > >         \workspace
> > >         > \OpenCms-7.0.2-jBPM-3.1.2\bin
> > >         >
> > >         > compile
> > >         >
> > >         > :
> > >         >
> > >         > [
> > >         >
> > >         > javac] Compiling 30 source files to C:\Documents and
> > >         Settings
> > >         > \Administrator\workspace\OpenCms-7.0.2-jBPM-3.1.2\bin
> > >         >
> > >         > [
> > >         >
> > >         > javac] Note: Some input files use unchecked or unsafe
> > >         operations.
> > >         >
> > >         > [
> > >         >
> > >         > javac] Note: Recompile with -Xlint:unchecked for details.
> > >         >
> > >         > [
> > >         >
> > >         > copy] Copying 4 files to C:\Documents and Settings
> > >         \Administrator
> > >         > \workspace\OpenCms-7.0.2-jBPM-3.1.2\bin
> > >         >
> > >         > BUILD SUCCESSFUL
> > >         >
> > >         > Total time: 3 seconds
> > >         >
> > >         > *************************************************build.xml
> > >         output
> > >         > END*******************************************
> > >         >
> > >         > Kindly advise. What am I missing now?
> > >         >
> > >         > Thank you!!
> > >         >
> > >         > Bye,
> > >         > Viki.
> > >         >
> > >         >
> > >         >
> > >         > On Jan 29, 2008 12:13 PM, Shi Yusen <shiys at langhua.cn>
> > >         wrote:
> > >         >         Here is a howto:
> > >         >         http://sourceforge.net/cvs/?group_id=166365
> > >         >
> > >         >         In brief, use anonymous to login.
> > >         >
> > >         >         Regards,
> > >         >
> > >         >         Shi Yusen/Beijing Langhua Ltd.
> > >         >
> > >         >
> > >         >
> > >         >         在 2008-01-29二的 11:06 +0300,Vikrama Sanjeeva写
> > >         道:
> > >         >
> > >         >         > Hi Shi,
> > >         >         >
> > >         >         >   Is there any username/password for your CVS
> > >         repository?
> > >         >         >
> > >         >         > Thanks
> > >         >         >
> > >         >         > Bye,
> > >         >         > Viki.
> > >         >         >
> > >         >         >
> > >         >         > On Jan 28, 2008 5:13 PM, Shi Yusen
> > >         <shiys at langhua.cn> wrote:
> > >         >         >         The publish process is here:
> > >         >         >
> > >         >
> > >
> > http://jbpm-opencms.cvs.sourceforge.net/jbpm-opencms/OpenCms-7.0.2-jBPM-3.1.2/processes/publish/
> > >         >         >         You can use cvs client in Eclipse to
> > >         download the
> > >         >         source code.
> > >         >         >
> > >         >         >         You can add your process target in you
> > >         build.xml,
> > >         >         see this as
> > >         >         >         a sample:
> > >         >         >
> > >         >
> > >
> > http://jbpm-opencms.cvs.sourceforge.net/jbpm-opencms/OpenCms-7.0.2-jBPM-3.1.2/build.xml?view=markup
> > >         >         >         >From line 141-155 is the compile-publish
> > >         target
> > >         >         which compile
> > >         >         >         and zip
> > >         >         >         the publish.process.
> > >         >         >
> > >         >         >         You can do all of these in your Eclipse.
> > >         >         >
> > >         >         >         Regards,
> > >         >         >
> > >         >         >         Shi Yusen/Beijing Langhua Ltd.
> > >         >         >
> > >         >         >
> > >         >         >         在 2008-01-28一的 15:29 +0300,Vikrama
> > >         Sanjeeva写
> > >         >         道:
> > >         >         >
> > >         >         >         > 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
> > >         >         >         >
> > >         >         >         >
> > >         _______________________________________________
> > >         >         >         > 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
> > >         >         >
> > >         >         > _______________________________________________
> > >         >         > 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
> > >         >
> > >         > _______________________________________________
> > >         > 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
> > >
> > > _______________________________________________
> > > 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/20080130/d488230c/attachment.htm>


More information about the opencms-dev mailing list