Case flows are a common requirement when embedding Pega 7 Platform content in another application's web page. Therefore Generate mashup code via case designer will generate Gadget code for actions like opening cases by specifying flows like pyStartCase or any other case flows.
Few particular actions like above can't be generated via Case designer, however if someone has full understanding about generated mashup code from case designer, they can change the generated code to refer a harness name instead of a case flow.
Let me explain you clearly. Apart from Case Designer, we are now aware that once can use Gateway configuration console (gateway.war) for configuring specific Pega Actions and the same war contains the PRGateway servlet which communicates between Pega and Gadget. But please note that starting from Pega 7.2.x series, PRGateway is not mandatory, once can directly communicate with Pega from Gadget.
When you generate mash up code from Case Designer, the URL mentioned in the mashup gadget code would be direct Pega host.
If you generate Gadget after choosing actions from Gateway configuration console, gadget HTML file will have the below format.
Looks at the highlighted part, we have an option to connect to Pega host without a Gateway. You just need to change the gateway URL to direct Pega host URLfor no gateway. And in this case prgateway.war is not required after you done with generating the gadget code
On the above screenshot URL's - 8719 is hosting the PRGateway, 8718 is the actual Pega host.