simple approval system in windows workflow - workflow

I want to generate simple document approval system in workflow foundation. We have already available document approval process example on MSDN but it is quite complex to understand as it involves WCf and all. I just want a startup with workflow foundation so it's better if I follow step by step guide tutorial. Thanks in advance.

I wrote a blog post on how to implement a simple approval workflow using emails and ASP.Net MVC.
http://blog.petegoo.com/index.php/2010/08/22/workflow-4-email-approval-sample/

I think http://visualstudiogallery.msdn.microsoft.com/7fe6f504-a58d-456e-8f55-e64bddc81a41 is a good tutorial to start with. It is better if you try this with state machine type of workflow because you need several user inputs from outside the workflow in several stages.

Related

Best way to automate Azure / Exchange Online tasks

In our company we automated certain things for our customers:
Reporting, (counting Azure AD accounts, systems, mailboxes);
Create user (setting all permissions);
Create mailboxes;
managing tickets in ITSM;
Delete user .
We did use a lot of Powershell scripts and Azure Devops to automate these tasks. Now with the deprecation of basic authentication, we had to change our scripts and the way of authentication to all of our customers' Exchange Online. This made us think, is there a better way to set this up not to have these problems? We are already working with configfiles, modules, classes in our scripts.
What would be the best way to automate these tasks and not have the rework when Microsoft changes the authentication method?
Another question what would be a way to automate these tasks in low code?
The situation is that we make connection with the Azure Platform from our customers.
If you already work with modules and classes you should probably write a single "authentication" module/class that is then used in all of the subsequent scripts. If and when MS change the authentication method again - one only needs to change this one class that is called by every other script.
In terms of "low code" - it depends on what these tasks are doing.. but, one is able to use the Power Platform Office365 Connector and from there it is possible to query AAD. There is also the GraphAPI.
It really depends on your use case but the following link may be of some assistance with the "low code" question:
https://powerusers.microsoft.com/t5/Building-Power-Apps/Query-Active-Directory/td-p/724376

Save ConversationReference on database

I'm creating a Teams bot to send proactive messages and I should save the ConversationReference on the database but my question is how?
Should I save the whole object or just some proprieties?
I'm using Postgres for the database and I'm build the bot in Java.
You actually don't need the entire ConversationReference. There are a few ways to implement Proactive Messaging, and the most simple requires only a conversation Id and a Service Url. Please see this other answer I posted a few months ago, where I reference some sample code and a video from a talk I gave, which both go into more detail. The samples I link to there are in node and C#, so not Java directly, but you should be able to get a good start between those two.

AWS Step functions for Creating User Driven Workflows

As a part of the product development, We have to implement a workflow engine. Currently the workflow is simple one i.e , there could be multiple states for ex: 1,2,3,4,5. The user can select a combination of states for ex
Work flow 1: 1->2->3->4->5
Work flow 2: 1->4->5
Work flow 3: 5
The plan is to implement the states in the workflow using Lambdas, ECS Tasks, App Runner etc and the orchestration using Step Functions . Since the workflows are created by users , we are looking for a way to translate the user selection in to a step function state machine. We are discussing various approaches
Create a step function programmatically based on the user selection
Create a catch all work flow with a Choice , which would a state based on it is selected in the workflow
Implement a decider function based approach
We found some references in the following post: AWS Step Functions with dynamic steps
Any other recommendation would be really appreciated. Thanks in advance

Best practices designing sandbox for REST api

We are developing some REST api's for internal use. To test these microservices we are toying with the idea that every service has a sandbox mode so we can do integration tests that are as close as possible to the real deal.
To see if this path is worth trying we are looking for documentation / best practices on how to manage this sandbox and how to implement this internally. When we look for the keywords Sandbox, REST API and Best Practices we only find how to implement as consumer of existing sandboxes.
So does anyone have some documentation / links in how to tackle this problem and what the pro's and con's are of the different ways?
Kr,
Thomas
I'd say there are two ways to proceed:
Basic: keep a separate sandbox instance of a service. You always deploy a new code to this instance first and run automated/manual tests to verify if everything works fine. A datastore could be a snapshot from the production data or artificial testing data. I would rather we have a "Snapshot" but it depends whether it is applicable in your particular case (privacy etc.)
Advanced: I spied this technique on Facebook Marketing API. This API provides an interface to set up and launch advertising campaigns. They didn't provide a sandbox api for testing purposes (at least last year when the system I was working on had been integrating with Facebook). However if you use a keyword "test" in a name of a campaign or an adset (key entities in the ad world) they would never launch and spend your money. You can try extend this concept on your particular domain and run tests on (or very close to) your production
Hope this helps

Celery Webhook Script in PhantomJS

I am trying to use celery to create a task management system, where the tasks are written in phantomjs. Basically the task is to crawl a URL and return a JSON object (that I'll want to use once the task is complete). There will be a list of URLs which will each have it's own crawl task.
I looked at this http://docs.celeryproject.org/en/latest/userguide/remote-tasks.html#calling-webhook-tasks to implement tasks in another language. However celery does not provide very good documentation at all on how the external webhook script should be written, what dependencies are required, and how it is run.
Should the task simply be stored on a server, which I will call with the HTTPCallback? How is it run in the PhantomJS framework. How are results from here stored or returned and how do I keep track of it? I have read a lot of docs and I still cannot find the exact interface or API for the other side of the webhook API.
I realize my question may not be too clear, so let me know, otherwise some good examples of this HTTPCallback API workflow would be helpful for a basic understanding, and how the webhook script in a different language is structured.
Any insight would be greatly appreciated. Thanks a lot!