View gist:71407a3e8e1d777d46b8475c61359305
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kafka topics: | |
- name: KAFKA_TOPIC_DOCUMENT_GENERATE_HTML_IN | |
value: ai.flowx.in.document.html.generate.v1 | |
- name: KAFKA_TOPIC_DOCUMENT_GENERATE_HTML_OUT | |
value: ai.flowx.updates.document.html.generate.v1 | |
- name: KAFKA_TOPIC_DOCUMENT_GENERATE_PDF_IN | |
value: ai.flowx.in.document.generate.v1 | |
- name: KAFKA_TOPIC_DOCUMENT_GENERATE_PDF_OUT | |
value: ai.flowx.updates.document.generate.v1 |
View gist:06e21231d7ab791df5132d8a4129b585
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KAFKA_TOPIC_DOCUMENT_PERSIST_IN: | |
ai.flowx.in.document.persist.v1 | |
KAFKA_TOPIC_DOCUMENT_PERSIST_OUT: | |
ai.flowx.updates.document.persist.v1 |
View gist:f3a4f68fcd8dfe86caa02711aa9b9394
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ai.flowx.updates.document.persist.v1 <-- topic from doc plugin | |
uploadedDocument <-- key | |
MVEL | |
if(input.uploadedDocument.downloadPath!=null){ | |
output.put("app",{"uploadedDocument": "https://admin-laur.playground.flowxai.dev/document/" + input.uploadedDocument.downloadPath}); | |
} |
View gist:80f96136ce7de5f6a1676e52e218c296
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// connector 1 | |
"In": [ | |
{ | |
"Name": "ai.flowx.connectordb2.workshop.in.v1", // changed | |
"Partitions": 1, | |
"ReplicationFactor": 1, | |
"ProcessingThreads": 1, | |
"WorkerThreads": 2 | |
} | |
], |
View gist:dff1dff07eb80e2e9fcaabcba8894a0f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
De urcat ca si proces: | |
https://designer-workshop.playground.flowxai.dev/processes/definitions/109001/diagram?nodeId=109053&edit=true&templateId=313884 | |
https://designer-workshop.playground.flowxai.dev/processes/definitions/110754/diagram?nodeId=113180 | |
De descarcat si urcat ca si media library. | |
https://d2l8u5oe5161s.cloudfront.net/training/flowx/CheckCircle/1696411455444_CheckCircle.svg | |
https://d177l48o9taai0.cloudfront.net/demo-22/flowx/RequestedAmountBackground/1693478433943_requestedAmountBackground.png | |
https://d177l48o9taai0.cloudfront.net/demo-22/flowx/whiteCircle/1689940848517_whiteCircle.png | |
https://kubernetes.io/docs/reference/kubectl/cheatsheet/ |
View Suborchestrator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[FunctionName("DynamicOrchestrator")] | |
public static async Task<DynamicResult<int>> RunInnerOrchestrator([OrchestrationTrigger] IDurableOrchestrationContext ctx) | |
{ | |
var input = ctx.GetInput<DynamicFlowContext>(); | |
int state = 0; | |
foreach (var step in input.Steps) | |
{ | |
state = await ctx.CallActivityAsync<int>(step.Action, (state, step.param)); | |
} |
View FlowMaker-LowCode.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace dynamicworkflows.Workflows | |
{ | |
using Jint; | |
using Newtonsoft.Json; | |
using System.Collections.Generic; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Azure.WebJobs.Extensions.DurableTask; | |
using Microsoft.Azure.WebJobs.Extensions.Http; |
View DynamicOrchestrator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class FlowMaker | |
{ | |
[FunctionName("FlowMaker")] | |
public static async Task<int> Run([OrchestrationTrigger] IDurableOrchestrationContext context) | |
{ | |
// imagine this comes from a DB or the request payload | |
var steps = new DynamicFlowContext | |
{ | |
Steps = new List<DynamicStep<int>> |
View solution2.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Solution | |
{ | |
static void Main() | |
{ | |
int L = int.Parse(Console.ReadLine()); | |
int H = int.Parse(Console.ReadLine()); | |
string Sentence = Console.ReadLine().ToUpper(); | |
for (int i = 0; i < H; i++) { | |
string AsciiRow = Console.ReadLine(); |
View solution.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Solution | |
{ | |
static void Main(string[] args) | |
{ | |
int L = int.Parse(Console.ReadLine()); | |
int H = int.Parse(Console.ReadLine()); | |
var writter = new Writer(H,L); | |
string T = Console.ReadLine(); |
NewerOlder