Showing more Task Properties

6 views
Skip to first unread message

jgilc

unread,
Oct 19, 2009, 9:13:55 AM10/19/09
to tempo-dev
Hi,
In order to sort or group tasks by priority, deadline or process I
try to at these attributes to the json at JsonUpdate servlet. The
result was that it seems that the task api don't know the current
process (exactly the name), and that the process didn't assign a
priority value by default, getting a null value if it is not literaly
assigned.
How can I get for a task the process name (title) and some hint about
its instance?
How can I set a deadline to a task ahead its creation date and time?
Is there a way to assign a priority to all task by default without
using the mapper?
By the way, what api can I use to set a new priority value to a task
or deadline? I ask that because I saw a sample project that recommends
not to use the task api to set some attribute but use a bpel process.
(I think it was reassigning the task to a new people/role).
thank you, jgilc


Nicolas Modrzyk

unread,
Oct 19, 2009, 8:06:24 PM10/19/09
to temp...@googlegroups.com
Hi,

There are quite a few topics here, see my comment inlined.

On Mon, Oct 19, 2009 at 10:13 PM, jgilc <jgil1...@gmail.com> wrote:
>
> Hi,
> In order to sort or group tasks by priority, deadline or process  I
> try to at these attributes to the json at JsonUpdate servlet. The
> result was that it seems that the task api don't know the current
> process (exactly the name), and that the process didn't assign a
> priority value by default, getting a null value if it is not literaly
> assigned.
> How can I get for a task the process name (title) and some hint about
> its instance?
This is currently a work in progress. Should be in .. soon ?

> How can I set a deadline to a task ahead its creation date and time?
Is this not possible right now ? I cannot check the code right now,
but I supposed this is either possible, or we should remove the check
that prevents this.

> Is there a way to assign a priority to all task by default without
> using the mapper?
Right now, there is no way to update the metadata of a task. A new
task is usually created, clone from the original one.
If you want, you could easily contribute the code necessary to achieve
that, this would be in the tms-server sub-project.

> By the way, what api can I use to set a new priority value to a task
> or deadline? I ask that because I saw a sample project that recommends
> not to use the task api to set some attribute but use a bpel process.
> (I think it was reassigning the task to a new people/role).
Bpel process would be the task management process. The reason behind
this is simply because the bpel process is active, and would be aware
of the deadline expiration and fire the proper event, while updating
just the values, would update the content of the database, but nothing
would happen if the deadline has expired.

> thank you, jgilc
Thanks go to you for your valuable questions...

Nico

>
>
>
> >
>

jgilc

unread,
Oct 20, 2009, 2:58:23 PM10/20/09
to tempo-dev
Hi Nico,

> > How can I set a deadline to a task ahead its creation date and time?
>
> Is this not possible right now ? I cannot check the code right now,
> but I supposed this is either possible, or we should remove the check
> that prevents this.

There is a test at org.intalio.tempo.workflow.task.JPATaskTest who set
the priority using the task method setPriority and persists it.
Now, I can't find any test using deadline.

> > Is there a way to assign a priority to all task by default without
> > using the mapper?
>
> Right now, there is no way to update the metadata of a task. A new
> task is usually created, clone from the original one.
> If you want, you could easily contribute the code necessary to achieve
> that, this would be in the tms-server sub-project.

I would be glad to contribute any code, but I had this problem: I
can't use maven or the buildr, I can just use eclipse projects without
any connection, so I need all dependencies at hand. I just created a
project for ui-fw and add the libs from the compiled bundle. When
compiled the new JsonServlet (with getPriority,
getDeadline,getProcessID) it worked but the ui-fw app was a mess (I
just can see the portlet version).

> Bpel process would be the task management process. The reason behind
> this is simply because the bpel process is active, and would be aware
> of the deadline expiration and fire the proper event, while updating
> just the values, would update the content of the database, but nothing
> would happen if the deadline has expired.
>
I reviewed the reasign intalio designer project and found that there
is no deadline set but two timer events. I would like to fire events
from task properties that could be shown to customers, is it posible
at all?

I would like to give to all users the ability to see, sort and group
tasks by priority, deadline or process; to some power users the
ability to change the tasks' priority or dealine and also to reasing
them directly to a subordinate.

I am trying to know how tempo components work together and trying to
customize it to our needs. I didn't catch already the point when to
invoke tms (or tmp) or just modify and persist task metadata with Task
methods. Reading http://www.intalio.org/confluence/display/TEMPO/TMS I
saw many methods of the class
org.intalio.tempo.workflow.tms.server.TMSRequestProcessor like
setPriority but can't find them implemented in the source code. Where
can I find what it is done and what is not?

I would like to contribute anything I can. I think that intalio is
great.
Best regards, thank you, jgilc




Reply all
Reply to author
Forward
0 new messages