In Alfresco community launched workflow, for example Approval document. I want to show workflows details on personal website(the status of the process, the start date, term) How can I implement it? (Repository JavaScript API,RESTful API or what else?)
workflow status on a third-party website
227 Views Asked by Tackle Berry At
2
There are 2 best solutions below
0
Stefan De Laet
On
I think the easiest way is to build a java backed webscript. This means you create a spring bean which extends from webscript. (more info in https://wiki.alfresco.com/wiki/Web_Scripts#Java-Backed_Implementations )
In this spring bean you should inject the workflowservice.
<bean id="webscript.com.mycompany.workflowinformation.get" class="com.mycompany.GetWorkflowinformation" parent="webscript">
<property name="workflowService">
<ref bean="WorkflowService" />
</property>
</bean
You can then use this WorkflowService in your java class to query information about the state and the tasks of your workflow. Then return this information using your webscript response writer.
Related Questions in WORKFLOW
- Github action Post Run fails workflow
- Github actions set environment on a top level in workflow
- GHA reusable workflow succeeds with workflow_dispatch client but fails with push client
- Failed to create ISE, as i want to use this enable netorking in Logic app
- Post processing queue for Slurm
- Process level view on Flowable
- How to enable a PR originating from a forked repo to cause a GitHub workflow to push to a branch (gh-pages) in the original repo?
- not able to add previous commit into github tag using workflow
- Workflow for quickly building something with a specific non-standard build option
- Extract current running stage from dvc
- 'Workflow' cloud not be added to Xcode Cloud, request is rated limited/you must have 'Admin' permission
- Github action not getting triggered on scheduled time
- Flows sending out emails
- How to cancel a run for a non-existent runs-on member in github workflows?
- Github basic issue automation
Related Questions in ALFRESCO
- After upgrading Alfresco from 5.2 to 7.2 getting failed to initialize keystore error. Our old repository is in Alfresco 5.2
- Is there any Out of the box way to compress the content stored in ACS Enterprise version?
- How to upload file to specifc folder Alfresco
- Issue with 'OOoDirect' subsystem loading in Alfresco 5.2
- Alfresco Community edition 7.4 - Tomcat service Issue
- Change Alfresco users password using API
- Alfresco - right custom ID generation
- Activiti bypass activiti rest and call directly to activiti core error
- I can't see logs from new workflow - Alfresco SDK Maven
- Alfresco: outgoing mail properties are read but ignored
- Alfresco - Search metadata in OpenSearch image does not work
- Alfresco: change document content without changing the version
- Contentstore has more files than referenced in alf_content_url
- Angular HTTP interceptor in Alfresco ADF project doesn't work
- Alfresco CMIS Query Issue: Retrieving All Users
Related Questions in STATUS
- Activity status in Node js
- Ticketstatus on DynamicsCRM updates on TFS Ticketstatus change
- Simple Python Server - How to prevent sending 304 on either end?
- Drawer component can't close or open if a redux status is passed through the component props, but works directly if called in handler funtion
- blank orders being generated in WooCommerce with no details and a pending payment status,
- Payment gateway status check for vending machine
- Rails + Stripe: Enum status stays nil after update and save
- Woocommerce custom order status with customized email notification
- Add a Cancel order button to WooCommerce My account View Order pages
- Send text in email depends on status of checkbox in WCF7
- Podman Container Created Status
- Obtaining varied results using the grep command
- WooCommerce Virtual products - Autocomplete orders after payment
- Target status of deployment group in azure devops shows offline most of the time even though server is running
- What causes exist status 2 error? (GOLang)
Related Questions in WORKFLOW-ACTIVITY
- Not able to set approval date dynamically
- Best practices to organize repository structure for Dynamics 365 CRM Workflows/Plugins/Assemblies
- Workflow Foundation - Activity: Is it possible to cast a OutArgument?
- How do you return a data object from a subactivity in a UML activity diagram?
- Unable to download annotation attachment throwing Exception
- Activity Diagram Synchronization Bar
- Workflow Foundation - Multiple Bookmarks in Sequential Workflow
- Why can't I browse type for an workflow activity variable?
- Custom workflow is not running in Dynamics CRM 2016
- how to create a custom windows workflow activity using wire to connect its sub-activities
- WorkflowInvoker.Invoke - Literal only supports value types and the immutable type System.String
- How can I implement a workflow for a pre existing MVC application?
- Dealing with multiple bookmarks in windows workflow 4.5
- Pass Parameters to a API Controller from Workflow HttpSend Control
- windows workflow foundation custom activity - Hide properties at runtime
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You should use webscript,create webscript for getting details of workflow.In webscript you can filter data also.Other option is to use CMIS API of alfresco.
In case of webscript ,you will get more idea on below link.
https://wiki.alfresco.com/wiki/Web_Scripts
I just get realized,that there is already one webscript which returns workflow details.If you dont need extra information other than this you can use this.You can also add some extra fields in this.For more details of this webscript.Browse webscripts by hitting http://localhost:8080/alfresco/serviceindex url.
http://localhost:8080/alfresco/service/api/task-instances?authority=admin&properties=bpm_priority,bpm_status,bpm_dueDate,bpm_description&exclude=wcmwf:*&skipCount=0&maxItems=50