Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Is it possible to call a custom process from within a custom process (1 Comment)

$
0
0

Topic by Tom Magarey

In the interests of code re-usability I was wondering if it is possible to call a custom process module from within another custom process module, and if so, is it possible to pass arguments to the second process?

Lets say custom process_1 sends a message and requires 3 arguments 

Process_1(arg1, arg2, arg3) {

do stuff here

}

In Process 2 is it possible to do the following:

Process_2 {

arg1 -> value1

arg2,->value2

arg 3->value3

Process_1(arg1,arg2,arg3)

continue with process_2

?

The whole process could be written as one custom process but there is obviously some value in being able to reuse modules.

Cheers,

Tom


Viewing all articles
Browse latest Browse all 2504

Trending Articles