Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » GMT (Generative Modeling Technologies) » [OAW] Running java code from workflow
[OAW] Running java code from workflow [message #379571] Wed, 12 September 2007 11:29 Go to next message
Eclipse UserFriend
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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" color=3D#0000ff size=3D2>public class =
WorkflowTest=20
{<BR> <BR> &nbsp;&nbsp;&nbsp; WorkflowTest() =
{}<BR><BR>&nbsp;&nbsp;&nbsp; public=20
void invokedMethod() {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
System.out.println("This method has been invoked by the=20
workflow.");<BR>&nbsp;&nbsp;&nbsp; }</FONT></DIV>
<DIV><FONT face=3D"Courier New" color=3D#0000ff size=3D2>}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Andr=E9 =
Sousa</FONT></DIV></BODY></HTML>

------=_NextPart_000_0006_01C7F538.9A246A80--
Re: [OAW] Running java code from workflow [message #379574 is a reply to message #379571] Thu, 13 September 2007 09:46 Go to previous message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
André Sousa wrote:
> 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 {
>
> 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é Sousa

Has been answered in oAW's user forum :

http://www.openarchitectureware.org/forum/viewtopic.php?show topic=5212
Re: [OAW] Running java code from workflow [message #607566 is a reply to message #379571] Thu, 13 September 2007 09:46 Go to previous message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
André Sousa wrote:
> 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 {
>
> 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é Sousa

Has been answered in oAW's user forum :

http://www.openarchitectureware.org/forum/viewtopic.php?show topic=5212
Previous Topic:[TCS] NPE with TCSSamples
Next Topic:[TCS] NPE with TCSSamples
Goto Forum:
  


Current Time: Thu Apr 25 16:50:38 GMT 2024

Powered by FUDForum. Page generated in 0.04030 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top