Please add code, what you tried to do.So that we can understand what is the actually issue in the code.
I am not saying that it is not useful, but it is kind of old.
Try the following one, which is more up to date, Creating Custom Advanced Workflows in Alfresco | ECMArchitect | Alfresco Developer Tutorials
Besides that, if you want us to help you to understand what is wrong with your server, share the log files, and then we can give you some tips.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.