static void Main(string[] args) { string xmlString = File.ReadAllText(@"DasContract.Blockchain.Solidity.Test/example.dascontract"); var contract = ContractFactory.FromDasFile(xmlString); var generator = new ProcessConverter(contract); var code = generator.GenerateSolidity(); Console.WriteLine(code); File.WriteAllText(@"./code.sol", code); }
public CallActivityConverter(CallActivity callActivity, ProcessConverter converterService) { this.callActivity = callActivity; processConverter = converterService; }
public ScriptTaskConverter(ScriptTask scriptTaskElement, ProcessConverter converterService) { this.scriptTaskElement = scriptTaskElement; processConverter = converterService; }
public BusinessRuleTaskConverter(BusinessRuleTask businessRuleTaskElement, ProcessConverter converterService) { BusinessRuleTaskElement = businessRuleTaskElement; processConverter = converterService; }
public StartEventConverter(StartEvent startEventElement, ProcessConverter converterService) { this.startEventElement = startEventElement; processConverter = converterService; }
public UserTaskConverter(UserTask userTaskElement, ProcessConverter converterService) { this.userTaskElement = userTaskElement; processConverter = converterService; }
public ParallelGatewayConverter(ParallelGateway gatewayElement, ProcessConverter converterService) { this.gatewayElement = gatewayElement; processConverter = converterService; incrementVariableName = $"{GetElementCallName()}Incoming"; }
public EndEventConverter(EndEvent endEventElement, ProcessConverter converterService) { this.endEventElement = endEventElement; processConverter = converterService; }
public ExclusiveGatewayConverter(ExclusiveGateway gatewayElement, ProcessConverter converterService) { this.gatewayElement = gatewayElement; processConverter = converterService; }
public TimerBoundaryEventConverter(TimerBoundaryEvent eventElement, ProcessConverter processConverter) { this.eventElement = eventElement; this.processConverter = processConverter; }