Hi there,

When using Seam annotations I need to use annotation attributes that are not 
string constants.

In this code fragment:
@CreateProcess(definition="myProcessDefinition")  
  | @Begin(nested=true, pageflow="myPageFlowDefinition")
  | public void startProcess() {
  | ...
  | }
  | 
Is it possible to use variables instead of strings like: "myProcessDefinition".
I've tried referencing a private variable but I get a compilation error:

The value for annotation attribute CreateProcess.definition must be a constant 
expression

I know that this annotation in particular could be implemented using jBPMs api 
method:
public ProcessInstance newProcessInstance(java.lang.String 
processDefinitionName)

But I would prefer to use annotations (cleaner, compact code).

Is there an elegant workaround or do I just drop this annotation and call their 
corresponding api method.

Thanks for all your possible suggestions.

Yeyo



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956706#3956706

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956706


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to