[jBPM] - Purpose of "existsUser" in User Group Callback?
by jemmerling
jemmerling [https://community.jboss.org/people/jemmerling] created the discussion
"Purpose of "existsUser" in User Group Callback?"
To view the discussion, visit: https://community.jboss.org/message/649189#649189
--------------------------------------------------------------
I tried the following experiment:
I modified my model so that a particular task was statically assigned to a certain user. This user is registered at the task server, however in my User Group Callback I modified the logic so that when that user's id is passed in, the method returns false.
My assumption being that, when the process instance arrives at this task, some sort of exception will be thrown because the callback says the user doesn't exist.
Using a breakpoint, I confirmed that the method is called and that it returns "false" in this situation. However, this didn't seem to matter. The task was still reserved for that user and the user is still able to complete it.
So I am wondering, what is the purpose of this method?
Not a show-stopper but I would just like to understand, thanks!
--JE
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/649189#649189]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 11 months
[JBoss Tools] - Annotations are missing from generated entities using reverse engineering
by Alper Akture
Alper Akture [https://community.jboss.org/people/shlamalama] created the discussion
"Annotations are missing from generated entities using reverse engineering"
To view the discussion, visit: https://community.jboss.org/message/649190#649190
--------------------------------------------------------------
I'm connecting to a teradata intance and using the Eclipse plugin to generate entities off several views. The views don't have any primary key set, so I have declared these in the reverse eng xml file. When I generate the entities, I get java files that do not have any hibernate annotations. There is one table with 250+ columns, so I really need this.
The teradata information is:
Teradata Database 13.10.02.08
com.teradata.jdbc.TeraDriver
14.00.00.05
Here's a snippet from the reveng.xml:
<table name="F_ACXM_MBR" class="AcxiomData">
<primary-key>
<key-column name="MBR_UNIQ_KEY" />
</primary-key>
</table>
and my hibernate.cfg.xml:
<hibernate-configuration>
<session-factory name="Teradata">
<property name="hibernate.connection.driver_class">com.teradata.jdbc.TeraDriver</property>
<property name="hibernate.connection.password">password</property>
<property name="hibernate.connection.url">jdbc:teradata://host</property>
<property name="hibernate.connection.username">username</property>
<property name="hibernate.default_schema">U01TKE_GRPR_RADMT_VW</property>
<property name="hibernate.dialect">org.hibernate.dialect.TeradataDialect</property>
</session-factory>
</hibernate-configuration>
And this entity get's generated like so:
/**
* AcxiomData generated by hbm2java
*/
public class AcxiomData implements java.io.Serializable {
private String mbrUniqKey;
private String mbrId;
private String mbrFirstNm;
private char mbrMidinit;
private String mbrLastNm;
private String mbrHomeAddrLn1;
Thanks for any help!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/649190#649190]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 11 months