Skip to main content
14-Alexandrite
October 22, 2020
Solved

What's the use of User's Electronic Signature Image

  • October 22, 2020
  • 1 reply
  • 2445 views

Hi,

 

In Windchill User Creation Wizard Option to Upload the Electronic Signature Image.

But there's no Use Cases for this Image or I'm not aware.

 

Anyone mention the use case of this?

Best answer by HelesicPetr

Hello,

You have to write own code to achieve that needs.

The example how to use API to get signature picture is 

WTUser user = (WTUser) SessionHelper.getPrincipal(); // find user (in this example only logged user is used it is just for this example)
StandardOrganizationServicesManager stOrgmanager = StandardOrganizationServicesManager.newStandardOrganizationServicesManager();// create service manager to get signature
ElectronicSignature signature = stOrgmanager.getUserSignature(user); // get signature from user
ApplicationData adata = stOrgmanager.getUserSignatureApplicationData(signature); // get Application data where you can get picture of signature

Then you need to write a code to put the picture to existing PDF file in the system.

You can do it in a workflow but the workflow is limited to 4k characters in one robot. 

 

PetrH

1 reply

HelesicPetr
22-Sapphire II
22-Sapphire II
December 20, 2021

Hello,

There could be customization Use Case.

You can use this Signature image as a signature for Drawing PDF output in PostPublish process that the signature is printed to the PDF page from approver user in the last finished promotion request(Any change process object could be used as you wish :D).

In our case a customer's manufactures wanted "hand sign" on the drawings so that was a way how to solve it.

Best Regards

PetrH

Navku14-AlexandriteAuthor
14-Alexandrite
January 11, 2022

Hi Helesic,

 

Thanks for the reply.

Can you hint me how to use this signature in Drawing PDF.

Thanks again.

Navku

 

 

HelesicPetr
22-Sapphire II
22-Sapphire II
January 11, 2022

Hello,

You have to write own code to achieve that needs.

The example how to use API to get signature picture is 

WTUser user = (WTUser) SessionHelper.getPrincipal(); // find user (in this example only logged user is used it is just for this example)
StandardOrganizationServicesManager stOrgmanager = StandardOrganizationServicesManager.newStandardOrganizationServicesManager();// create service manager to get signature
ElectronicSignature signature = stOrgmanager.getUserSignature(user); // get signature from user
ApplicationData adata = stOrgmanager.getUserSignatureApplicationData(signature); // get Application data where you can get picture of signature

Then you need to write a code to put the picture to existing PDF file in the system.

You can do it in a workflow but the workflow is limited to 4k characters in one robot. 

 

PetrH