cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

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

Navku
14-Alexandrite

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

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?

ACCEPTED SOLUTION

Accepted Solutions
HelesicPetr
22-Sapphire I
(To:Navku)

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

View solution in original post

3 REPLIES 3
HelesicPetr
22-Sapphire I
(To:Navku)

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

Navku
14-Alexandrite
(To:HelesicPetr)

Hi Helesic,

 

Thanks for the reply.

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

Thanks again.

Navku

 

 

HelesicPetr
22-Sapphire I
(To:Navku)

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

Announcements


Top Tags