Sub process is one of the new feature introduced in SOA Suite 12c.
A subprocess is a piece of BPEL code that can be reused within a same BPEL process or in some other BPEL process.
Main uses of sub process is to increase the productivity of developer and reduce manual mistakes.
Subprocesses are only supported with BPEL version 2.0. There is no support with BPEL version 1.1.
Correlation sets are not supported in subprocesses. If you create a correlation set in an inline or standalone subprocess, it fails during runtime.
Subprocesses cannot be shared between multiple composites.
Monitor view is not supported from inside a subprocess. Monitor view is accessible from a BPEL process by selecting the Change to Monitor view icon above Oracle BPEL Designer.
There are two types of Sub Processes in SOA Suite 12c.
Standalone Sub process –> A stand alone sub process is a sub process which resides inside the same composite. Stand alone sub process contains activities that can be used inside the composite. We can use call activity to invoke a Standalone subprocess. We can see the standalone subprocess in components view.
For creating standalone subprocess and using it in a BPEL process ClickHere
Inline Sub process –> Inline sub process is a sub process that can resides in the same BPEL process. Inline sub process contains set of activities which can be used in the same BPEL process. We can use call activity to invoke a inline sub process. For converting to inline subprocess , all activities should be in same scope.
For creating Inline subprocess and using it in a BPEL process ClickHere