brunobuzzi / BpmFlow

An implementation of BPMN standard using GemStone/S®, Orbeon®, Bizagi® and Highcharts®
7 stars 4 forks source link

Refactor all Test with dependencies to OrbeonTemplate class methods #1163

Open brunobuzzi opened 3 years ago

brunobuzzi commented 3 years ago

See brunobuzzi/OrbeonPersistenceLayer#407 Rewrite tool example: AST pattern matching:

`msg
    ^self formCreatorClass createFormInstance: `#formInstance definitionNamed: `#defName app: `#appName definitionMethod: `#formDefinition in: `arg

AST replacing Pattern:

`msg
    ^self formCreatorClass 
        createFormInstance: `{RBMessageNode receiver: (RBMessageNode receiver: (RBVariableNode named: 'self') selector: #newInstanceTemplate) selector: (RBVariableNode identifierToken: `#formInstance) name} 
        definitionNamed: `#defName 
        app: `#appName 
        definitionMethod: `{RBMessageNode receiver: (RBMessageNode receiver: (RBVariableNode named: 'self') selector: #newDefinitionTemplate) selector: (RBVariableNode identifierToken: `#formDefinition) name} 
        in: `arg