Formatting
This commit is contained in:
parent
3986d9294c
commit
2d18300127
|
|
@ -34,7 +34,7 @@ namespace Elsa.Services.Models
|
|||
public IDictionary<string, object> Annotations { get; set; } = new Dictionary<string, object>();
|
||||
|
||||
public Func<ActivityExecutionContext, ValueTask<IActivity>> ActivateAsync { get; set; } = _ => new ValueTask<IActivity>();
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Returns a value of whether the specified activity can execute.
|
||||
/// </summary>
|
||||
|
|
@ -43,12 +43,12 @@ namespace Elsa.Services.Models
|
|||
/// <summary>
|
||||
/// Executes the activity.
|
||||
/// </summary>
|
||||
public Func<ActivityExecutionContext, IActivity,ValueTask<IActivityExecutionResult>> ExecuteAsync { get; set; } = (_, _) => new ValueTask<IActivityExecutionResult>(new DoneResult());
|
||||
public Func<ActivityExecutionContext, IActivity, ValueTask<IActivityExecutionResult>> ExecuteAsync { get; set; } = (_, _) => new ValueTask<IActivityExecutionResult>(new DoneResult());
|
||||
|
||||
/// <summary>
|
||||
/// Resumes the specified activity.
|
||||
/// </summary>
|
||||
public Func<ActivityExecutionContext, IActivity,ValueTask<IActivityExecutionResult>> ResumeAsync { get; set; } = (_, _) => new ValueTask<IActivityExecutionResult>(new DoneResult());
|
||||
public Func<ActivityExecutionContext, IActivity, ValueTask<IActivityExecutionResult>> ResumeAsync { get; set; } = (_, _) => new ValueTask<IActivityExecutionResult>(new DoneResult());
|
||||
|
||||
public Func<ValueTask<ActivityDescriptor>> DescribeAsync { get; set; } = () => new ValueTask<ActivityDescriptor>(new ActivityDescriptor());
|
||||
public bool IsBrowsable { get; set; } = true;
|
||||
|
|
|
|||
|
|
@ -23,17 +23,17 @@
|
|||
</elsa-studio-root>
|
||||
|
||||
<script type="module">
|
||||
// Import publicly exposed services.
|
||||
import { WebhooksPlugin } from "@basePath/_content/Elsa.Designer.Components.Web/elsa-workflows-studio/index.esm.js";
|
||||
// Import publicly exposed services.
|
||||
import { WebhooksPlugin } from "@basePath/_content/Elsa.Designer.Components.Web/elsa-workflows-studio/index.esm.js";
|
||||
|
||||
// Get a handle to the elsa-studio-root element.
|
||||
const elsaStudioRoot = document.querySelector('elsa-studio-root');
|
||||
// Get a handle to the elsa-studio-root element.
|
||||
const elsaStudioRoot = document.querySelector('elsa-studio-root');
|
||||
|
||||
// Configure Elsa during the 'initializing' event.
|
||||
elsaStudioRoot.addEventListener('initializing', e => {
|
||||
const elsa = e.detail;
|
||||
elsa.pluginManager.registerPlugin(WebhooksPlugin);
|
||||
});
|
||||
</script>
|
||||
// Configure Elsa during the 'initializing' event.
|
||||
elsaStudioRoot.addEventListener('initializing', e => {
|
||||
const elsa = e.detail;
|
||||
elsa.pluginManager.registerPlugin(WebhooksPlugin);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in a new issue