Thursday, November 26, 2020

Import vs Include

 What is the difference between include and import?

You must use <import> to refer to declarations or definitions that are in a different target namespace.

You must use <include> to refer to declarations or definitions that are in the same or no target namespace.

Valid: 

<xsd:import namespace=”some/name/space”/> 
<xsd:import schemaLocation=”classpath://mine.xsd”/> 

<xsd:include schemaLocation=”classpath://mine.xsd”/>

 Invalid: 

<xsd:include namespace=”some/name/space”/>


Spawn process

 What is a spawn process?

If you select the Spawn check-box, the parent process does not wait for the called subprocess to complete, the subprocess is executed in a separate process instance, and the parent process cannot access the output of the called process.

How to access the output of the spawned process in the main process?

You can set a module shared variable in the spawned process. In the main process it can be accessed using a getSharedVariable. You cannot use job shared variable as it creates a new copy for each job.



Import vs Include

 What is the difference between include and import? You must use <import> to refer to declarations or definitions that are in a differ...