Giter Site home page Giter Site logo

scope_workflow_visualizer's Introduction

CircleCI

SCOPE & DWC Workflow Visualizer

This project works on a simplified Microsoft SCOPE language parser to automatically generate logic graph from scripts.

Implemented with:

Packages

$ pip install -r requirements.txt

Example

The following SCOPE script

#DECLARE MyFile1	string = "/path/to/myfile1.ss";
#DECLARE MyFile2	string = "/path/to/myfile2.ss";

#DECLARE MyOutputFile	string = "/path/to/output.ss";
#DECLARE MyOutputFile1	string = "/path/to/output1.ss";

Data1 =
SELECT RGUID,
    ListingId AS OrderItemId,
	HourNum
FROM (SSTREAM @MyFile1);

Data2 =
SELECT RGUID,
    ListingId AS OrderItemId,
	HourNum
FROM (SSTREAM @MyFile2);

Data = SELECT
            RGUID,
            OrderItemId
       FROM Data1
       JOIN Data2 ON Data1.RGUID == Data2.RGUID
       WHERE OrderItemId != 0;

OUTPUT TO SSTREAM @MyOutputFile;
OUTPUT Data1 TO SSTREAM @MyOutputFile1;

The output will be like this:

Output

scope_workflow_visualizer's People

Contributors

pppk520 avatar

Stargazers

Wang Hsiao-Ling avatar Po-Chih Huang avatar pthaike avatar

Watchers

James Cloos avatar  avatar

scope_workflow_visualizer's Issues

Mixing func and string cat

@OutputFolder.Trim()+@"/CookedBulkApiLogs/FilteredBulkApiLog_"+@TodayStr+".ss" will be parsed as func_chain

@"/CookedBulkApiLogs/FilteredBulkApiLog_" + @OutputFolder.Trim() + @TodayStr+".ss" will be parsed as str_cat

Need to handle inner func of str_cat

#IF statement understanding

#DECLARE INPUT_PATH string = "@@INPUT_PATH@@"; 
#IF (@INPUT_PATH.Contains("INPUT_PATH"))
    #SET INPUT_PATH = @OPT_SHARE_PATH + @"/BroadMatchSuggestion/";
#ENDIF

For now it keeps IF body no matter the condition is but some path settings are conditional.

May use 'Contains' in IF_statement to deal with this path trick

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.