Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 5 General Activities Palette : Shared Variable

Shared Variable
Shared Configuration
A Shared Variable resource allows you to share data across process instances. All process instances can read and update the data stored in a shared variable.
This resource is useful if you want to marshal data across process instances or if you want to make a common set of information available to all process instances. For example, you may have a set of approval codes for incoming orders that change daily for security purposes. You can create a shared variable to hold the approval codes and create one process definition for setting the codes. You can then retrieve the shared variable in all processes that require the current approval codes.
See TIBCO ActiveMatrix BusinessWorks Process Design for more information about shared variables.
Configuration
The Configuration tab has the following fields.
If you choose this option, a database must be used to store process engine data. Also, only engines that are in the same deployment and use the same database to store process information can share variables. See TIBCO ActiveMatrix BusinessWorks Administration for more information on specifying a database for process engine storage during deployment. See TIBCO ActiveMatrix BusinessWorks Process Design for more information on specifying a database for process engine storage during testing.
Schema
The Schema tab allows you to define a custom schema to hold the data of the shared variable. You can define your own datatype on this tab, and you can reference an XML schema stored in the project. See Appendix A, Specifying Data Schema for a description of how to define a schema.
Initial Value
The Initial Value tab allows you to specify an initial value for the shared variable. You can choose one of the following:
None — specifies that no initial value is set for the shared variable. You must use the Set Shared Variable activity to set a value before you can read the value of the variable with the Get Shared Variable activity.
See TIBCO Designer Palette Reference for more information on creating XML Instance resources.
 

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved