A specification is used to define a service signature that can be used by one or more service definitions. The closest analogy is a Java interface. A Java interface defines methods, their parameters and return types, but do not provide an implementation.
A service specification does the same thing. It defines the inputs and outputs. Then a service can use that specification as its own signature. Thus if a specification declares inputs A and C and outputs X and Z and then service M is defined to use that specification, it will automatically have A and C and X and Z in its respective input and output panes.
Use of a specification has no impact on pipeline scope or lifecycle. There really is no such thing as “global var” in IS.
Sat appears to be asking for a way to create a var in a startup service (which will be executed in some thread) and have that var available to all services that are subsequently executed (which will be executed in other threads). Using a specification will not accomplish this.
#Integration-Server-and-ESB#webMethods#Flow-and-Java-services