[JBoss jBPM] - Re: Storage of process variables outside jbpm?
by meeru777
hi the_dude
anonymous wrote : I fetch my objects using hql statements that check some process variable values. No prob here.
a quick question regarding the above, i would also like to query my process instances(task instances to be exact) with some variables, however, i cannot seem to achieve it(been struggling for quite some time now!), this is how i do it currently with just the process names:
| String q = "from org.jbpm.graph.exe.ProcessInstance as pi" +
| " where pi.rootToken.node.name = '" + Constants.JBPM_WF_PROCESS_APPROVED+ "'";
|
| Query qry = context.getSession().createQuery(q);
| List result = qry.list();
|
This returns me all the instances of approved status.
I actually have 100,000 instances in approved status, and they all contain a variable "CollectionName", which has only 4 different values. Eg. Photo Collection, Text Collection etc.
So my question is how i can retreive instances for a particular collection? (presumably by adding collectionname = 'Photo Collection' somewhere in the hql query)
Thanks in advance!
meeru
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971661#3971661
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971661
19 years, 7 months
[JBoss Portal] - Re: Is the header a portlet?
by rutfield
I don't mind doing the work, but I'd like to stay on track....
I cut-and pasted from yours, so I'm not too concerned about typos.
Before replying, I tried the other properties such as RenderSetId and supported-window-states to no avail.
| <deployments>
| <deployment>
| <if-exists>overwrite</if-exists>
| <parent-ref>default</parent-ref>
|
| <page>
| <page-name>IFrame</page-name>
| <window>
| <window-name>IFramePortletWindow</window-name>
| <instance-ref>IFramePortletInstance</instance-ref>
| <region>center</region>
| <height>0</height>
| <properties>
|
| <property>
| <name>theme.windowRendererId</name>
| <value>emptyRenderer</value>
| </property>
| <property>
| <name>theme.decorationRendererId</name>
| <value>emptyRenderer</value>
| </property>
| <property>
| <name>theme.portletRendererId</name>
| <value>emptyRenderer</value>
| </property>
| </properties>
| </window>
| </page>
|
| </deployment>
| </deployments>
|
It definitely cleaned things up, but I still have the edit/max/min options in the upper right.
Ideas?
The 'view source' is a nice idea as well.
Thanks.
CR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971657#3971657
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971657
19 years, 7 months
[Security & JAAS/JBoss] - One security domain, two web apps
by bezdomny
I currently have two web apps, Identity and Business. Idenity is currently configured to use jaas/jboss with a custom login module and it works great. I now have this new app that I want to secure and I want to use Identity security domain and login module. I have added the following to the jbos-web.xml in the Business app (exact same as in the Identity app jboss-web.xml):
<jboss-web>
<security-domain flushOnSessionInvalidation="true">java:/jaas/Identity</security-domain>
<resource-ref>
<res-ref-name>jdbc/cidb</res-ref-name>
<jndi-name>java:/jdbc/cidb</jndi-name>
</resource-ref>
</jboss-web>
I have also added the requisite security role/form login stuff in Business web.xml. As follows:
<security-role>
basic client users
<role-name>client</role-name>
</security-role>
<security-role>
basic analyst users
<role-name>analyst</role-name>
</security-role>
<security-constraint>
<web-resource-collection>
<web-resource-name>
client files
</web-resource-name>
<url-pattern>*.do</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>client</role-name>
<role-name>analyst</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>Identity</realm-name>
<form-login-config>
<form-login-page>/common/start.jsp</form-login-page>
<form-error-page>/common/loginerror.jsp</form-error-page>
</form-login-config>
Now for the question :)
When I hit one of the Business apps struts pages like /Business/initSplashPage.do, I get the proper login screen. When I try to authenticate, the auth fails and I'm returned to the login screen. Actually my login module isn't even being called. I'm assuming that the reason is that my custom login module isn't visible in the classpath of the business app since it actually lives inside the Identity app. Is this correct? Shouldn't jboss be able to call my custom login module from wherever it lives?
Now for the weird part. When I authenticate as normal in the Identity app, then click over to the Business app, it passes my auth info fine and recognises I'm logged in, and the app works fine. This isn't such a big deal as my clients will always go through the Identity app to the business app, but I don't know why it won't work just authenticaing in the biz app.
Any ideas?
Thanks!
B
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971656#3971656
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971656
19 years, 7 months