How Can We Help?
Answer
One of the new features added in v6.0.3 was the ability to use GAC assemblies in Managed Code when scripting.
To use this feature at the activityA specific step in a process. It will be the user interface for that step (web form or a screen), for example, the Leave Application (screen interface or web form) will be the first Activity in the Leave Requisition process. The Leave Application Authorization will be the second step or Activity in the Leave Requisition process. One Process can have multiple activities. level, we introduced a new placeholder specifically for GAC assemblies.
The below code will illustrate how to reference a GAC assembly to allow it to be used in the scripting.
At activity Level:
#XMReference #XMReference #XMGAC System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089; System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A; #XMGAC #XMUsings System.Windows.Forms; #XMUsings public void VF10GACAssembly_OnLoad() { } public void VF10GACAssembly_OnRefresh() { }
At object level:
public void VF1010AssemblyName_OnLoad() { Button button = new Button(); string typeName = button.GetType().ToString(); activity.SetControlValue("VF1010AssemblyName", typeName); }
Comments are closed.