Pancreas is stimulated by hormones to releases its enzymes.
These are Gastrin and Secretin.Gastrin secreted by stomach which stimulates gastric secretion.At the same time it also stimulates the pancreas to secrete pancreatic juice.
Secretin is secreted by intestine which stimulates the pancreas to secrete pancreatic juice.