1 2 Previous Next 25 Replies Latest reply on Jul 4, 2007 4:44 AM by cahimoped Go to original post
      • 15. Re: Assigning a task to->{group, rolebased,...}

        I have not tested it directly there, but that would seem to work, I was told they were performing several upgrades to the system and reworking entirely the test web app, so that should take care of most problems such as this in the 3.2 CVS dev version. I have not been able to compile it completely yet, but they are trying to get a starter kit ready by the end of the month for it.

        James

        • 16. Re: Assigning a task to->{group, rolebased,...}
          j1a2o

          I went ahead and tried it, after fixing up the query a little. The SQL query works, I tried it directly through phpMyAdmin for MySQL. But JBPM is not liking it:

          11:30:34,974 ERROR [SessionFactoryImpl] Error in named query: TaskMgmtSession.findTaskInstancesByActorIds
          org.hibernate.hql.ast.QuerySyntaxException: unexpected token: ON near line 5, column 42 [

          SELECT t.ID_ AS taskid, t.NAME_ AS taskname, t.DESCRIPTION_ AS taskdescription, u.NAME_ AS userid, t.START_ AS startdate, t.DUEDATE_ AS duedate, t.END_ AS enddate
          FROM JBPM_TASKINSTANCE t
          INNER JOIN JBPM_TASKACTORPOOL p ON t.ID_ = p.TASKINSTANCE_
          INNER JOIN JBPM_POOLEDACTOR pa ON p.POOLEDACTOR_ = pa.ID_
          INNER JOIN JBPM_ID_GROUP g ON pa.ACTORID_ = g.NAME_
          INNER JOIN JBPM_ID_MEMBERSHIP m ON m.GROUP_ = g.ID_
          INNER JOIN JBPM_ID_USER u ON u.ID_ = m.USER_
          WHERE t.END_ IS NULL

          ]
          at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:59)

          Any ideas? Thanks.

          • 17. Re: Assigning a task to->{group, rolebased,...}

            It is using the hibernate mapping language so that complicates it a little bit more from doing that.

            James

            • 18. Re: Assigning a task to->{group, rolebased,...}
              petia

              Hi

              I have recently started to use jBPM. I would like to assign a task to a group of users, but I do not succeed to do it. I saw the comments on this forum and they are one year old. I am wondering whether it is still problematic to assign a task to a group of users or if this issue has been solved? How do I do then?
              I have tried the following:



              As long as I have only one employee defined, the task gets assigned to her/him. The moment I define two employees, I get stuck with an error message when executing the process.
              If I only use
              expression="group(A)", I do not get any error message, but the task does not get offered to anyone in the group.

              I will appreciate any help. I am running JBOSS jBPM 3.1.2 and using the web interface to execute the processes.

              Regards, Petia

              • 19. Re: Assigning a task to->{group, rolebased,...}
                petia

                Of some reason, I code I pasted above did not appear, so here it is.

                I have tried the following:




                Petia

                • 20. Re: Assigning a task to->{group, rolebased,...}
                  petia

                  Sorry my code does not appear in my text. I do not know why.
                  Here it is


                  <assignment
                  expression="group(A) --> member(employee)"
                  ...

                  • 21. Re: Assigning a task to->{group, rolebased,...}
                    ricardomarques

                    I'm having a similar problem, but i'm using the expressions directly:

                    <start-state name="enter request">
                     <task name="request entry">
                     <controller>
                     <variable name="start date" access="read,write,required"></variable>
                     <variable name="duration" access="read,write,required"></variable>
                     </controller>
                     <assignment expression="group(users)"></assignment>
                     </task>
                     <transition name="" to="evaluate request"></transition>
                     </start-state>
                    


                    Group users, has 2 users: grover and ernie

                    I start the instance with ernie, and the task appears on ernie tasklist and not in the group.

                    cmd = new NewProcessInstanceCommand();
                    cmd.setProcessId(Long.parseLong(pid));
                    //cmd.setActorId(userName);
                    cmd.setCreateStartTask(true);
                    
                    execute(cmd);
                    


                    In this case, have tried to comment \ uncomment the actorid and the createstarttask and the behavior is the same.

                    • 22. Re: Assigning a task to->{group, rolebased,...}
                      kukeltje

                      u recently started using jbpm and are using 3.1.2?? 3.1.4 is already out and even is 3.2. Please try a more recent version first and btw as posted earlier in this topic, the webconsole has changed in 3.2 (although group assignment was not fully functional). If things do not seem to work, please create a unit test that we can use out of the box

                      • 23. Re: Assigning a task to->{group, rolebased,...}
                        petia

                        Hi Ronald,

                        Without any success, I have been trying to install version 3.2.1 of jbpm-jpdl today. (As I had problems with the previous installation i.e., version 3.1.2, I was a bit resistant to do this until your reply yesterday). I can not get the GPD Eclipse plugin to work. I find the installation direction in jbpm-jpdl-3.2.1\designer\readme file very cryptic. I also had a look at the 3.0 installation directions on http://docs/jboss.com/jbpm/v3/gpd/installation.html. I tried to follow the plugin installation directions there but got stuck after selecting Open in figure 1.4 (in these directions) with the error message Invalid Site "Selected archive does not contain an update site. ...". I did not find where to download the site-configuration zip file. I did try to do this plugin installation in Eclipse 3.1.2 and had some inconsistency with figure 1.3 (so it may be version problems). Anyway, I am obviously a bit lost and would very much appreciate if you or anyone else could direct me to some more helpful installation directions for the jbpm-jpdl-3.2.1 from these provided in the readme file with the download file.
                        Thanks in advance!
                        Regards, Petia

                        • 24. Re: Assigning a task to->{group, rolebased,...}
                          koen.aers

                          Petia,

                          The installation of the GPD is not very hard though. If you have version 3.2.1 of the jbpm-jpdl-suite and version 3.2.2 of the Eclipse SDK, just extract the eclipse archive in the jbpm-jpdl-3.2.1\designer folder.

                          Regards,
                          Koen

                          • 25. Re: Assigning a task to->{group, rolebased,...}
                            cahimoped

                            All this is classic Eclipse plugins crap. Unzip your GPD archive and point the Ecplise plugin for new local site. And you need to have some others plugins installed before GPD can work.

                            To begin with jbpm 3.2.1 I suggest you take the suite version from sourceforge. It contains everything. All you need to do is unzip it somewhere, launch the server with the start.bat or start.sh and it should work directly.

                            1 2 Previous Next