Subject: Re: SDL-News: Actual parameters to a static process ?
From: Rick Reed TSE (rickreed#tseng.co.uk)
Date: Mon Feb 01 1999 - 11:33:22 GMT
The originator of this message is responsible for its content.
-----From Rick Reed TSE <rickreed#tseng.co.uk> to sdlnews -----
At 10:03 +0000 1/2/99, DUBOIS Fabrice CNET/DTL/LAN wrote:
>How would you pass actual parameters to a process, assuming you HAVE TO
>create this process in a STATIC way (no usage of any CREATE construct).
>For example, I want to give a name (as a CharString actual param.) to my
>process.
This can be done by using a PROCESS TYPE and SYNONYM context parameter.
PROCESS TYPE pt <SYNONYM cs CharString>
...
ENDPROCESS TYPE pt;
SYNONYM acs CharString = EXTERNAL;/*or some internal value*/
PROCESS p <acs>
...
ENDPROCESS p;
If you have more than one instance of p, then they will all have the same
actual parameter.
If different instances of p are to have different values, then what I
usually do is to put a remote procedure in the initial transition (that is
between the process start and the first state), that calls a unique server
process in the system that can return any values you like (I suppose that
this could also be external). What I often use this for is to give an index
number to each process (the server counts the calls of the remote
procedure). This avoids any toll dependent Pid features.
Such a server process could also return a different CharString for each
instance - perhaps set up by SYNONYM context parameter to the server.
-- Rick Reed, TSE Limited 13 Weston House, 18-22 Church Street Lutterworth Leicestershire LE17 4AW United Kingdom Tel +44 14 55 55 96 55; Fax +44 14 55 55 96 58 Mob +44 79 70 50 96 50 email: rickreed#tseng.co.uk http://www.tseng.co.uk ftp://ftp.tseng.co.uk/tseng/-----End text from Rick Reed TSE <rickreed#tseng.co.uk> to sdlnews ----- For help, email "majordomo#sdl-forum.org" with the body of your email as: help or (iff this does not answer your question) email: owner-sdlnews#sdl-forum.org
This archive was generated by hypermail 2a23 : Sun Jun 16 2013 - 10:41:40 GMT