[JBoss jBPM] - Re: [jBPM][3.1.1] Get a timer instance with API
by ephemeris-lappis
Ok for the fix you did on the JIRA...
Now, more details about my needs...
After a task terminates, the process decides to follow a transition to a new task. This last one must start initializing a timer that must fire after a given timeout. This timeout must be calculated according to business informations that are provided by the finishing step.
Ideally, a script expression directly given in the timer definition in the XML file could be perfect i the value formula is not too complicated. But i suppose that such a solution doesn't exist...
The alternative i had tried, was to intercept the task creation event, and change the timer delay. But if i understand what you say, it seems it's not a possible solution...
So what should i do ?...
Thanks anyway for your help, and any new idea is welcome...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960383#3960383
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960383
19 years, 9 months
[JBoss Portal] - Re: User Input Req for 2.6 Usability and UI enhancements
by roy.russo@jboss.com
"Frozen4Time" wrote : I think the biggest thing that is needed for the portal is a WYSIWYG style page layout. While I think the current tree view in the admin portlet is a nice way to get a big picture view of "what is where" in the portal, it's not very intuative or user freindly.
|
We actually discussed this idea for managing the layout of pages. You should see something of this nature in 2.6, when we introduce the ability for users to customize pages. Ideally, the same functionality can be introduced to the admin side.
Google, actually had something like this (drag-n-drop wysiwyg layout builder) in their first versions of their portal. For some reason, I can't find it anymore, but it was a killer feature.
"Frozen4Time" wrote :
| For example giving them a container that will layout portlets in row or column order, being able to specify the number of rows or columns, specifying pixle or percentage widths to these containers.
A good idea, but it gets tricky. Layouts (# and names of columns) are currently defined in jsps, so this would have to change in to making layouts dynamic.
"Frozen4Time" wrote :
| The current JBoss Portal layou engine locks the user into a predefined structure and the layout utility is not that user friendly.
|
True. The only workaround for now, is to have X# layouts deployed, allowing for the user/admin to pick whichever he wants.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960380#3960380
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960380
19 years, 9 months
[JBoss jBPM] - Re: WebApp Development
by Viegas
Ok here goes, the console
| 14:40:00,163 DEBUG [CommandExecutorThread] waiting for more messages
| 14:40:00,163 DEBUG [StaticNotifier] going to wait for (CMD_EXECUTOR, java.lang.Object@12d9844)
| 14:40:02,944 DEBUG [JbpmContextInfo] creating jbpm context with service factories '[message, scheduler, logging, persistence, authentication]'
| 14:40:02,944 DEBUG [JbpmContext] creating JbpmContext
| 14:40:02,944 INFO [STDOUT] Servelet
| 14:40:02,944 INFO [STDOUT] acþÒo verAccao
| 14:40:02,944 INFO [STDOUT] opcao 274
| 14:40:02,944 DEBUG [HomeBean] entrou no homeBean
| 14:40:02,944 DEBUG [DbPersistenceServiceFactory] creating persistence service
| 14:40:02,944 DEBUG [DbPersistenceService] creating hibernate session
| 14:40:02,944 DEBUG [DbPersistenceService] beginning hibernate transaction
| 14:40:02,944 DEBUG [HomeBean] getTaskInstances(ernie)
| 14:40:03,038 DEBUG [HomeBean] selectTaskInstance(274)
| 14:40:03,085 DEBUG [HomeBean] TaskInstance[Send Updated Order]
| 14:40:03,444 INFO [STDOUT] Controlador nao nulo
| 14:40:04,022 DEBUG [Converters] adding converter 'D', 'org.jbpm.context.exe.converter.DoubleToStringConverter'
| 14:40:04,038 DEBUG [Converters] adding converter 'C', 'org.jbpm.context.exe.converter.CharacterToStringConverter'
| 14:40:04,038 DEBUG [Converters] adding converter 'B', 'org.jbpm.context.exe.converter.BooleanToStringConverter'
| 14:40:04,038 DEBUG [Converters] adding converter 'Y', 'org.jbpm.context.exe.converter.BytesToByteArrayConverter'
| 14:40:04,038 DEBUG [Converters] adding converter 'A', 'org.jbpm.context.exe.converter.DateToLongConverter'
| 14:40:04,038 DEBUG [Converters] adding converter 'R', 'org.jbpm.context.exe.converter.SerializableToByteArrayConverter'
| 14:40:04,054 DEBUG [Converters] adding converter 'I', 'org.jbpm.context.exe.converter.IntegerToLongConverter'
| 14:40:04,054 DEBUG [Converters] adding converter 'H', 'org.jbpm.context.exe.converter.ShortToLongConverter'
| 14:40:04,069 DEBUG [Converters] adding converter 'G', 'org.jbpm.context.exe.converter.FloatToDoubleConverter'
| 14:40:04,069 DEBUG [Converters] adding converter 'F', 'org.jbpm.context.exe.converter.FloatToStringConverter'
| 14:40:04,069 DEBUG [Converters] adding converter 'E', 'org.jbpm.context.exe.converter.ByteToLongConverter'
| 14:40:04,476 DEBUG [TaskBean] initialized availableTransitions null
| 14:40:04,694 DEBUG [JbpmContextInfo] creating jbpm context with service factories '[message, scheduler, logging, persistence, authentication]'
| 14:40:04,694 DEBUG [JbpmContext] creating JbpmContext
| 14:40:04,694 DEBUG [DbPersistenceServiceFactory] creating persistence service
| 14:40:04,694 DEBUG [DbPersistenceService] creating hibernate session
| 14:40:04,694 DEBUG [DbPersistenceService] beginning hibernate transaction
| 14:40:04,694 DEBUG [SchedulerThread] checking for timers
| 14:40:04,694 DEBUG [JbpmContext] closing JbpmContext
| 14:40:04,694 DEBUG [Services] closing service 'persistence': org.jbpm.persistence.db.DbPersistenceService@1816b6e
|
and here goes the servlet
| private void processarAccao(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
|
| {
|
|
|
| ServletContext context = getServletContext();
|
| HttpSession session = req.getSession(true);
|
|
|
| try
|
| {
|
| System.out.println("Servelet");
|
| System.out.println("acção " + req.getParameter("accao"));
|
| System.out.println("opcao " + req.getParameter("opcao"));
|
| if (req.getParameter("accao").equals("verAccao"))
|
| {
|
| String id = req.getParameter("opcao");
|
| HomeBean hb = new beans.HomeBean(session);
|
| List lista = hb.getTaskInstances("ernie");
|
| hb.selectTaskInstance(Long.valueOf(id));
|
| } else
|
| {
|
| System.out.println("Falhou");
|
| }
|
| } catch (Exception e)
|
| {
|
| System.out.println(e.getMessage());
|
| System.out.println("MP----------");
|
| System.out.println(e.getCause());
|
| System.out.println("MP----------");
|
| e.printStackTrace();
|
| }
|
| }
It doesnt return any error, just goes to a blank page, I tried to reproduce the same thing thats in the example.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960377#3960377
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960377
19 years, 9 months
[JBoss Portal] - Re: User Input Req for 2.6 Usability and UI enhancements
by roy.russo@jboss.com
"PeterJ" wrote : Why can't it be formatted using the Nphalanx theme? The style sheet and graphics are available. Besides, many systems that require logging on have a default (i.e., non-personalized) look for the login page.
|
Right. Thats the way it used to be. I'll see if I can get that behaviour back for 2.6, or even 2.4.
"PeterJ" wrote :
| In the Administration Portlet....
All items noted. The Admin Portlet will literally be gutted and completely redone for 2.6. Usability of that portlet is our main concern with it. If there is time, we also plan to introduce wizards.
"PeterJ" wrote :
| 8) Check the user interface against Firefox. Some things don't work. For example, tool tips for some icons which appear in IE don't appear in Firefox because the 'title' property was not defined.
|
Noted.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960376#3960376
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960376
19 years, 9 months
[JBoss Seam] - Re: ConcurrentModificationException
by bfo81
You cannot change the length of a Collection (by adding or removing items) while iterating through it.
You can
- make a copy of the account collections, delete accounts from that copy during iteration, clear the account collection and insert all elements of the copy into the account collection *uff*
- insert all accounts to delete into a toDelete collection during iteration, and then iterate over the toDelete collection and delete items from the account collection.
Confused? Here's an example for the second way:
public void filter(...) {
| Collection<Accounts> toDelete = new ArrayList<Accounts>();
| for (Account a: accounts)
| if(accounts.notAccessibleBy(user)
| toDelete.add(a);
| else if (accounts.accessibleBy(user)
| continue;
| else
| toDelete.add(a);
|
| for (Account a: toDelete)
| accounts.remove(a);
| }
btw: The checks you make (notAccessiblyBy, accessibleBy) seem to be a bit weird ;). It looks like you want to keep ALL accounts in the collection or delete ALL of them. Wouldn't it work like this?
public void filter(...) {
| if (accounts.notAccessibleBy(user))
| accounts.clear();
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960375#3960375
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960375
19 years, 9 months