Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signatures associated to workflow steps (Activiti) - (issue also in your wishlist) #30

Open
tsiakmaki opened this issue May 8, 2017 · 5 comments

Comments

@tsiakmaki
Copy link

Signatures associated to workflow steps (Activiti) feature, which is also in your wishlist.
Could you guide us to make a start?

@angelborroy-ks
Copy link
Contributor

Probably the best approach is to build a new FTL control component for Share based in activiti-transitions.ftl. You can include a new button "Signature" by using available signature action source code.

Let me know if this make sense for you.

@tsiakmaki
Copy link
Author

Angel I am working on this issue, but I am stuck.
In this new e.g. sign-activiti-transitions.ftl, I guess we need to fire the onActionSign. But its params record and owner are unknown in the ftl.

YAHOO.Bubbling.fire("onActionSign",
{
    record: ,
    owner:
});

Am I in the right direction?

@angelborroy-ks
Copy link
Contributor

Probably this is not the right approach.
I understand you are including a button in order to sign a document included in the task. So, activiti-transitions.ftl is not the right component, you should inspect packageitems.ftl and probably this code can help you to customise the picker in order to add sign action.

@tsiakmaki
Copy link
Author

tsiakmaki commented May 31, 2017

I had been trying overriding bpm:packageActionGroup with a custom action list, but did not work. packageitems.ftl does not seem to handle custom action lists. E.g.:
repo/..../...-model.xml

<type ....
   <property name="bpm:packageActionGroup">
      <default>sign_package_item_actions</default>
    </property>

share/.../share-config-custom.xml

  <action-group id="sign_package_item_actions">
	<action idref="sign-action-pdf" /> 
  </action-group>

Will follow your lead on packageitems.ftl and come back with more. Thank you.

@angelborroy-ks
Copy link
Contributor

Probably is required to include YUI sign action JavaScript invocation in Object Finder:
https://github.com/Alfresco/share/blob/2503c4738893e6f55c8a0e5b8ae98741edf0f093/web-framework-commons/src/main/webapp/components/object-finder/object-finder.js#L1421

I've never try such a customisation, but it looks feasible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants