🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

How to assign macro values on a server process?

kaymanUser: "kayman"
New Altair Community Member
Updated by Jocelyn

Hi, is it possible to run a process with macro values?

 

In the studio flow I am able to use macros to decide which branches should be executed, eg if a given macro value is 0 it means the whole flow needs to be executed, if it is 1 it means the incremental flow needs to be executed.

 

On the server part however I can find no way to send this value (so 0 or 1) so it makes the whole logic pretty useless. This looks to me like a very basic thing so I am probably overlooking something. I can see some macro binding options in services, but I do not need an output, just a process to run with a give macro value.

 

Is this possible ?

Find more posts tagged with

Sort by:
1 - 1 of 11
    IngoRMUser: "IngoRM"
    New Altair Community Member
    Accepted Answer

    You are close :smileyhappy:  You can not set macros in the scheduler directly (interesting idea!), but you can schedule other processes which do this for you.

     

    Everything which has been said is correct.  Independent of the output (even if there is none), you can still just create a web service from your parameterized process.  Now you can create processes executing this web service by using the Get Page operator and using the macro value you desired (per scheduled process).

     

    But there is also an easier way: you can simply build your parameterized process (like you did) and expose the macros to control it in the context of the process.  You can now build multiple processes executing the original process with "Execute Process".  Here you can set the macros to the desired values.  And those new processes (which simply invoke the original one with different macro values) are then scheduled.

     

    Hope that helps,

    Ingo