{"action":"created","issue":{"url":"https://api.github.com/repos/dasjestyr/FluidFlow/issues/1","repository_url":"https://api.github.com/repos/dasjestyr/FluidFlow","labels_url":"https://api.github.com/repos/dasjestyr/FluidFlow/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/dasjestyr/FluidFlow/issues/1/comments","events_url":"https://api.github.com/repos/dasjestyr/FluidFlow/issues/1/events","html_url":"https://github.com/dasjestyr/FluidFlow/issues/1","id":161761402,"number":1,"title":"Chaining IFs only allows for one level","user":{"login":"dasjestyr","id":3200529,"avatar_url":"https://avatars.githubusercontent.com/u/3200529?v=3","gravatar_id":"","url":"https://api.github.com/users/dasjestyr","html_url":"https://github.com/dasjestyr","followers_url":"https://api.github.com/users/dasjestyr/followers","following_url":"https://api.github.com/users/dasjestyr/following{/other_user}","gists_url":"https://api.github.com/users/dasjestyr/gists{/gist_id}","starred_url":"https://api.github.com/users/dasjestyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dasjestyr/subscriptions","organizations_url":"https://api.github.com/users/dasjestyr/orgs","repos_url":"https://api.github.com/users/dasjestyr/repos","events_url":"https://api.github.com/users/dasjestyr/events{/privacy}","received_events_url":"https://api.github.com/users/dasjestyr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-22T19:06:10Z","updated_at":"2016-06-22T19:09:24Z","closed_at":null,"body":"```csharp\r\nvar workflow = new WorkflowActivity(serviceQueue, taskStore)\r\n                .Do(createChangeRequest)\r\n                .FireAndForget(notifyDepartment)\r\n                .WaitFor(requestManagerApproval)\r\n                    .If(managerApprovedRequest)\r\n                        .WaitFor(requestQualityReview)\r\n                        .If(qualityReviewApproved)\r\n                            .WaitFor(requestBoardApproval)\r\n                            .If(boardApprovedChanges)\r\n                                .Do(publishChanges)\r\n                                .Also(notifyDepartment)\r\n                            .EndIf()\r\n                        .EndIf()\r\n                    .Else()\r\n                        .Do(notifyDepartment)\r\n                    .EndIf();\r\n```\r\n\r\nWhen there are multiple branches of IF statements, an exception is thrown stating that the previous IF must be closed first. This should be modified to allow multiple branches."},"comment":{"url":"https://api.github.com/repos/dasjestyr/FluidFlow/issues/comments/227846587","html_url":"https://github.com/dasjestyr/FluidFlow/issues/1#issuecomment-227846587","issue_url":"https://api.github.com/repos/dasjestyr/FluidFlow/issues/1","id":227846587,"user":{"login":"dasjestyr","id":3200529,"avatar_url":"https://avatars.githubusercontent.com/u/3200529?v=3","gravatar_id":"","url":"https://api.github.com/users/dasjestyr","html_url":"https://github.com/dasjestyr","followers_url":"https://api.github.com/users/dasjestyr/followers","following_url":"https://api.github.com/users/dasjestyr/following{/other_user}","gists_url":"https://api.github.com/users/dasjestyr/gists{/gist_id}","starred_url":"https://api.github.com/users/dasjestyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dasjestyr/subscriptions","organizations_url":"https://api.github.com/users/dasjestyr/orgs","repos_url":"https://api.github.com/users/dasjestyr/repos","events_url":"https://api.github.com/users/dasjestyr/events{/privacy}","received_events_url":"https://api.github.com/users/dasjestyr/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T19:09:24Z","updated_at":"2016-06-22T19:09:24Z","body":"Consider modifying `public WorkflwoActivity If<T>(ISpecfication)` to use a state variable containing the \"current workflow\" to which all activities are being added. Then EndIf() will switch current to previous and continue as normal."}}
{"actor":{"display_login":"dasjestyr"}}