How to access the variable created in Init from Process Transaction state in RE Framework

I have created the variable with name StockValue and i want to use same variable from Process Transaction state, the variable scope i already selected as General Business Process but still i cant access it from Process Transaction state.

Can some please help me to correct it.

Please change it as a Argument inorder to access it in every states…

Thanks.

Hi @vaibhav2.chavan

Use as a argument(out) and wherever you need just import(in) and use it instead of a variable.

Fine
–in Process Transaction State along the xaml where we want to use this variable, create a ARGUMENT with IN direction like this in_StockValue in the arguments panel (next to variable panel)
–now while invoking that workflow here in MAIN.xaml click on import arguments option and that IN argument will get displayed along the list…
now assign this variable StockValue as input value to that IN argument

–so that it will be used in that xaml

Cheers @vaibhav2.chavan

1 Like

Hi @Palaniyappan, How can I use variable created in process transaction throughout the ReFramework?

Fine
If we are going to use that variable created in process transaction state and going to use only within that state then we can create variables
Or
If we want to use that in other states or workflows We need to create a argument instead of variable with OUT direction

Cheers @saili

@Palaniyappan, I did that but no luck. once it is out of process.xaml the variable gets null.

Yah if we want to use the variable outside the xaml then we need to use ARGUMENTS not variable
Cheers @saili