Can we have a ResourceCollection() under Resource()?

The quick answer is json:api resources can not be composed of other resources. Instead they have relationships to each other. See Clarification on Resources Composed of Other Resources in the json:api forum for details on this topic. A corollary to this is do not include “foreign keys” in the resources, instead favor relationships.

So for you specific case instead of having process being composed of many activities, process has a “to-many” relationship to activities where the hypermedia API server can server-side “include” the related activities if desired or if the client requests with a “include” query parameter.