[OAW] Running java code from workflow [message #379571] |
Wed, 12 September 2007 11:29 |
Eclipse User |
|
|
|
Originally posted by: sousandre.gmail.com
This is a multi-part message in MIME format.
------=_NextPart_000_0006_01C7F538.9A246A80
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I'm doing a transformation from a model in textual representation, to a =
EMF model.
What I want is to execute methods defined in a java class in my =
workflow.
Does anyone knows how to do this?
for example:
public class WorkflowTest {
=09
WorkflowTest() {}
public void invokedMethod() {
System.out.println("This method has been invoked by the =
workflow.");
}
}
What I wanted was to define a workflow RUN.OAW and inside this workflow =
do a call to invokedMethod(), so that the sentence is writen to the =
stdout.
I've looked at the OAW Workflow Engine Reference, and found some info on =
creating components, but I could not make them work.
Is it possible to do what I'm trying to and if so, how can I do it?
Thanks in advance.
Andr=E9 Sousa
------=_NextPart_000_0006_01C7F538.9A246A80
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16525" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>I'm doing a transformation from a model =
in textual=20
representation, to a EMF model.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>What I want is to execute methods =
defined in a java=20
class in my workflow.<BR>Does anyone knows how to do this?<BR>for=20
example:</FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Courier New" color=3D#0000ff size=3D2>public class =
WorkflowTest=20
{<BR> <BR> WorkflowTest() =
{}<BR><BR> public=20
void invokedMethod() {<BR> =20
System.out.println("This method has been invoked by the=20
workflow.");<BR> }</FONT></DIV>
<DIV><FONT face=3D"Courier New" color=3D#0000ff size=3D2>}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>What I wanted was to define a workflow =
RUN.OAW and=20
inside this workflow do a call to invokedMethod(), so that the sentence =
is=20
writen to the stdout.<BR>I've looked at the OAW Workflow Engine =
Reference, and=20
found some info on creating components, but I could not make them=20
work.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Is it possible to do what I'm trying to =
and if so,=20
how can I do it?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advance.</FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><FONT face=3DArial=20
size=3D2></FONT></FONT></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Andr=E9 =
Sousa</FONT></DIV></BODY></HTML>
------=_NextPart_000_0006_01C7F538.9A246A80--
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04030 seconds