Пример #1
0
        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);
        }
Пример #2
0
 public CallActivityConverter(CallActivity callActivity, ProcessConverter converterService)
 {
     this.callActivity = callActivity;
     processConverter  = converterService;
 }
Пример #3
0
 public ScriptTaskConverter(ScriptTask scriptTaskElement, ProcessConverter converterService)
 {
     this.scriptTaskElement = scriptTaskElement;
     processConverter       = converterService;
 }
Пример #4
0
 public BusinessRuleTaskConverter(BusinessRuleTask businessRuleTaskElement, ProcessConverter converterService)
 {
     BusinessRuleTaskElement = businessRuleTaskElement;
     processConverter        = converterService;
 }
Пример #5
0
 public StartEventConverter(StartEvent startEventElement, ProcessConverter converterService)
 {
     this.startEventElement = startEventElement;
     processConverter       = converterService;
 }
Пример #6
0
 public UserTaskConverter(UserTask userTaskElement, ProcessConverter converterService)
 {
     this.userTaskElement = userTaskElement;
     processConverter     = converterService;
 }
Пример #7
0
 public ParallelGatewayConverter(ParallelGateway gatewayElement, ProcessConverter converterService)
 {
     this.gatewayElement   = gatewayElement;
     processConverter      = converterService;
     incrementVariableName = $"{GetElementCallName()}Incoming";
 }
Пример #8
0
 public EndEventConverter(EndEvent endEventElement, ProcessConverter converterService)
 {
     this.endEventElement = endEventElement;
     processConverter     = converterService;
 }
 public ExclusiveGatewayConverter(ExclusiveGateway gatewayElement, ProcessConverter converterService)
 {
     this.gatewayElement = gatewayElement;
     processConverter    = converterService;
 }
Пример #10
0
 public TimerBoundaryEventConverter(TimerBoundaryEvent eventElement, ProcessConverter processConverter)
 {
     this.eventElement     = eventElement;
     this.processConverter = processConverter;
 }