-
Notifications
You must be signed in to change notification settings - Fork 91
Great project! #1
Comments
Absolutely. The component allows you to define activity definitions in 3 ways:
Ultimately, an activity definition is a plain old JavaScript object that looks like this: interface ActivityDefinition {
type: string;
displayName: string;
description: string;
category: string;
properties: Array<ActivityPropertyDescriptor>;
getOutcomes(activity: Activity): string[];
} Your back-end could simply store these as JSON. However one thing I might not have thought through enough is the For example, the Could you maybe tell a little bit more about your use case on how you were thinking to store activity definitions in your back-end? |
I gave this some more thought, and I think I found a neat solution to allow for data-driven activity definitions. I am planning on building a reference dashboard application with Orchard Core that would allow an admin to define activity definitions from the dashboard. Ultimately, you will be able to define activity definitions using any of the following approaches:
Options 2 and 3 are complete optional, as they all ultimately just add a simple activity definition in the form of an object (serializable from and to JSON) to the internal store. I'll close this issue and create a new one to track progress on this work, but feel free to keep posting here if you want. |
Is it possible that getting the activity definitions from the back-end, and building them in the front ?
The text was updated successfully, but these errors were encountered: