service

fun service(serviceClassName: String, owningLegalIdentity: CordaX500Name, trace: Trace = Trace.newInstance(), externalTrace: Trace? = null): InvocationContext

Creates an InvocationContext with InvocationOrigin.Service origin.